What is XHTML / XML QNames?

I was wondering what are the xml qnames - is this a predefined name, is there a list or can I make my name?

+4
source share
2 answers

The short answer is that you can make up your 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 appeared on this IBM site .

+2
source

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

0
source

All Articles