[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: namespace URI of xmlns prefix
--- John Heinstein <jheinstein@e...> wrote: > But what is the namespace URI of the attribute? What > namespace does the > prefix "xmlns" belong to? The namespace URI will be http://www.foo.com/some.namespace > And then you have default namespace declarations, > such as > xmlns="http://www.foo.com/some.namespace". > > - the namespace prefix of the attribute is an empty > string: '' > - the local name of the attribute is "xmlns" > - the value of the attribute is > "http://www.foo.com/some.namespace" > > And I presume in this case, the namespace URI would > be an empty string? namespace URI will again be http://www.foo.com/some.namespace > I'm asking because I'm unsure how a DOM method like > getAttributeNS is > supposed to deal with namespace declarations. Would > xmlns attributes > simply be ignored in this case? I do not think so (it will not be ignored).. This is nice information about namespaces http://www.rpbourret.com/xml/NamespacesFAQ.htm Regards, Mukul ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|