You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/01/08 20:57:19 UTC
DO NOT REPLY [Bug 5749] New: -
getChildNodes not giving the correct info
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=5749>.
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=5749
getChildNodes not giving the correct info
Summary: getChildNodes not giving the correct info
Product: Xerces-C++
Version: 1.6.0
Platform: PC
OS/Version: Other
Status: NEW
Severity: Major
Priority: Other
Component: Validating Parser (DTD)
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: lavina_n@yahoo.com
Suppose node is of type DOM_Node, then the method
DOM_Node firstChild = node.getChildNodes().item(0);
return a node whose type is 'text' whereas it is actually a DOM_Element. I get
the same behavior if I use the call node.getFirstChild().
Also, if I do the following -
DOM_NodeList list = nodel.getChildNodes();
the number of elements in 'list' is not correct.
However, I get the correct node information if I use the call
DOM_Node firstChild = node.getElementbyTagName("TagName").item(0);
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org