Getting the value of the xmlns attribute

james at xmlTree.com james at xmltree.com
Wed May 12 19:22:14 BST 1999


Sorry if this is the inappropriate place to post this question.

I've got some RDF data like
<rdf:RDF
  xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://my.netscape.com/rdf/simple/0.9/">
   <channel>
     <title>Internet Alchemy</title>
     <link>http://alchemy.openjava.org/</link>
     <description>Internet Alchemy - last published 7/May/1999</description>
   </channel>
</rdf:RDF>


I want to get the value of the xmlns attribute, so I tried to use
objSource.selectSingleNode("rdf:RDF/@xmlns"), which does not return an attribute object.
The method call objSource.selectSingleNode("rdf:RDF/@xmlns:rdf") *does* return an
attribute object.

It seems that because xmlns is a reserved word, this particular method call does not
return an attribute object.  Is there a way around this?

p.s. Using XMLDOM from Microsoft IE 5.00.2014.0216

Many thanks in advance,
James Carlyle

james at xmltree.com
www.xmltree.com - directory of XML content on the web


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list