开发者

What are XHTML/XML QNames?

开发者 https://www.devze.com 2023-01-24 17:07 出处:网络
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 t

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

精彩评论

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