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();
   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>


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

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:05 UTC