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

Re: namespace URI of xmlns prefix

  • To: John Heinstein <jheinstein@e...>, xml-dev@l...
  • Subject: Re: namespace URI of xmlns prefix
  • From: Mukul Gandhi <mukul_gandhi@y...>
  • Date: Fri, 15 Jul 2005 13:59:52 -0700 (PDT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=dCQh1HYQdQSO/4vwsYL8mQV9S1FdQIcjgGZ/N39BOcreyEDV9oSfd19z9BHQ+4e4uUsoR1CT9C/V30vI0zV0yxM8ih0UKnLi5nmMvlhu+eUUrBQAjGXLG3A5rDeY0YYs9JBAGn6n7iWIfphpqBT4GbQzFVGDunR8wSv+lW3ztGw= ;
  • In-reply-to: <42D809F0.7050501@e...>

xmlns ignored
--- 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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.