Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Default-default namespace and localname [Thread Next] Re: Default-default namespace and localnameTo: NULL Date: 8/1/2006 12:18:00 PM
Max wrote:
> - Is the default-default namespace "http://www.w3.org/2000/xmlns/" or an
> empty string("")?
If you do not define a default namespace (or if you undefine the default
namespace by assigning "" to it), the default is "no namespace". (Empty
string is not a legal namespace URI, it's just how XML expresses "no
namespace"). Whether that shows up as empty string or null or something
else depends on which API you're using to access the document's contents.
> - Is the localname property for element without prefix the name of element
> (localName = nodeName) or an empty string("")?
Per the XML Infoset, if an element is not bound to a namespace it has no
localname. Again, it's up to the API you're using to decide how to tell
you this.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
