[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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>
Can an element's QName value be without a prefix?
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 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
First Name
Last Name

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.