namespaces and DTD interactions

  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 UTC