W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2001

namespaces and DTD interactions

From: Fred L. Drake, Jr. <fdrake@acm.org>
Date: Tue, 20 Mar 2001 15:34:50 -0500 (EST)
Message-ID: <15031.48874.788483.388658@localhost.localdomain>
To: www-dom@w3.org

  Let's assume we have the following XML document:

<!DOCTYPE doc [
  <!ELEMENT doc EMPTY>
  <!ATTLIST doc foo CDATA "bar">
]>
<doc xmlns="urn:my-scheme:my-namespace"/>

  If 'doc' holds my Document object, should I expect

	doc.documentElement.getAttributeNodeNS(
            "urn:my-scheme:my-namespace", "foo")

to return an ATTRIBUTE_NODE referring to the foo attribute, or should
it return null?
  Thanks!


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Digital Creations
Received on Tuesday, 20 March 2001 15:41:03 GMT

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