W3C home > Mailing lists > Public > www-dom@w3.org > April to June 1999

Namespace support in MS/Datachannel

From: Ronald Bourret <rbourret@ito.tu-darmstadt.de>
Date: Tue, 11 May 1999 17:05:06 +0200
Message-ID: <01BE9BD0.6B90D7F0@grappa.ito.tu-darmstadt.de>
To: "'DOM List'" <www-dom@w3.org>
What (obvious) thing am I missing in the MS/Data Channel DOM? In the following code, localName is correct ("A") but nsURI is null.

   com.datachannel.xml.om.Document doc = new com.datachannel.xml.om.Document();
   doc.load("test.xml");
   Element root = doc.getDocumentElement();
   String localName = ((IXMLDOMNode)root).getBaseName();
   String nsURI = ((IXMLDOMNode)root).getNamespaceURI();

test.xml contains the following:

   <!DOCTYPE foo:A [
      <!ELEMENT foo:A (#PCDATA)>
      <!ATTLIST foo:A xmlns:foo
                CDATA #FIXED "http://foo.org">
   ]>
   <foo:A xmlns:foo="http://foo.org">bar</foo:A>

Thanks,

-- Ron Bourret
Received on Tuesday, 11 May 1999 11:06:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:46 GMT