Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Are there standard namespaces that don't need URIs? [Thread Next] Re: Are there standard namespaces that don't need URIs?To: NULL Date: 2/3/2007 3:33:00 PM Grant Robertson wrote: > As I am learning about XML I seen that xmlns is used with a colon after > it as if it were a namespace itself. However, I have never seen a URI > given for it. Is "xmlns" a sort of predefined word in that all XML > software just knows what it means without it needing a URI? The relevant specification is the "Namespaces in XML 1.0" specificaton: <http://www.w3.org/TR/xml-names/> You will see that <http://www.w3.org/TR/xml-names/#ns-decl> reserves a family of attributes for namespace declaration, namely either 'xmlns' or a qualified name beginning with 'xmlns:'. <element xmlns="http://example.com/ns1"> is a default namespace declaration. So any namespace aware XML parser "knows" the meaning of xmlns and xmlns:some-prefix attributes as declaring XML namespaces. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
