DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15122>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15122

getElementsByTagName() not (or unable) to return Comment or Text nodes





------- Additional Comments From [EMAIL PROTECTED]  2002-12-05 22:28 -------
Ok, I've looked at the Xerces code (DeepNodeListImpl), and I understand what is
going on, but I'd like a decision on whether it's the RIGHT approach.

Basically, this comment says it all:

    /** 
     * Iterative tree-walker. When you have a Parent link, there's often no
     * need to resort to recursion. NOTE THAT only Element nodes are matched
     * since we're specifically supporting getElementsByTagName().
     */
    protected Node nextMatchingElementAfter(Node current)

The issue is that, normally, not all Nodes in a NodeList are necessarily Element
nodes.  One WOULD expect that calling root.getElementsByTagName("*") would
result in the same set of Nodes as manually walking the decendent nodes of
'root'.  Since the "special" name of "*" is supported, can this method be made
to support the "special" tags of:

  "#text", "#comment", "#cdata-section", "#document", and "#document-fragment"

See http://xml.apache.org/xerces2-j/javadocs/api/org/w3c/dom/Node.html

I am perfectly willing, and able, to effect these changes, I just need to have
an "OK" by someone that this further behavior should be supported (as I
obviously think it should be), and a contact of someone to send diffs to.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to