You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Elena Litani <el...@ca.ibm.com> on 2002/06/04 21:24:24 UTC

Re: question about DOM/DOM2 behavior wrt namespaces

Hi Paul,

Paul Brown wrote:
> However...  With namespace awareness turned on, calling getAttributes() returns a NodeList of DOM1 attributes 

With W3C DOM, calling getAttributes() returns NamedNodeMap, that
represents collection of attributes.
To retrieve attributes after namespace aware processing, use
getNamedItemNS() method instead of getNamedItem().

If you are interested in the test suites for W3C DOM, take a look at the
test suite developed by the W3C:
http://www.w3.org/DOM/Test/

Hope it helps,
-- 
Elena Litani / IBM Toronto

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org