W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2012

Can an element's QName value be without a prefix?

From: Costello, Roger L. <costello@mitre.org>
Date: Mon, 12 Mar 2012 22:28:14 +0000
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <B5FEE00B53CF054AA8439027E8FE17751822D606@IMCMBX04.MITRE.ORG>
Hi Folks,

Suppose an element is declared to be of type QName:

<element name="example" type="QName" /> 

In an instance document, can the value of <example> be without a namespace prefix:


If yes, then what is the namespace URI for Hello?

Suppose I declare a default namespace:

<document xmlns="http://www.example.org">

Is Hello in the http://www.example.org namespace?

Received on Monday, 12 March 2012 22:28:42 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:20 UTC