开发者

What are XHTML/XML QNames?

I was wondering what are the xml qnames are they pre-defined name, is there 开发者_C百科a list of them or can I make my own name?


The short answer is that you may make up your own name. A typical way to create a QName and instantiate a Service in Java would be:

QName serviceName = new QName("http://www.xmethods.net/sd/BNQuoteService.wsdl","BNQuoteService");
Service service = Service.create(url, serviceName);

The QName line came from this IBM site.


To make it simple, the qname is the global name in your tag, weither prefix:localname if a namespace is defined in your document, or just localname if not.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜