Attributes are not children. A standard NodeIterator will not walk into
them from their elements, though if initialized with an Attr as its root it
will walk the attr's subtree.
Sorry, but you really do have to do a bit more coding work to deal with the
attributes explicitly.
See the DOM Level
hings for attributes.
Thanks,
Richard.
- Original Message -
From: "Richard Jinks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 09, 2002 11:28 AM
Subject: NodeIterator problems
> Hi
> Please can someone tell me whats wrong with the code
Hi
Please can someone tell me whats wrong with the code sample below?
I'm trying to use a NodeIterator to go through all nodes in my DOM tree, but
the code is ignoring Attribute nodes.
I can't find anything in the API or the DOM spec to indicate that
NodeIterators ignore attribute nodes, and I'm n