OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Getting the value of the xmlns attribute

[ Lists Home | Date Index | Thread Index ]
  • From: "james@xmlTree.com" <james@xmltree.com>
  • To: <xml-dev@ic.ac.uk>
  • Date: Wed, 12 May 1999 18:21:24 +0100

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

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

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

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

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@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@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS