HELP
HELP

Reputation: 14575

What are XHTML/XML QNames?

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

Upvotes: 4

Views: 1130

Answers (2)

rajah9
rajah9

Reputation: 12339

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.

Upvotes: 2

Alexis Dufrenoy
Alexis Dufrenoy

Reputation: 11946

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.

Upvotes: 0

Related Questions