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 2001/06/14 15:14:46 UTC
[Bug 2179] New: - DOM_NodeList.item(i) always returns a NULL node.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2179
*** shadow/2179 Thu Jun 14 06:14:46 2001
--- shadow/2179.tmp.19063 Thu Jun 14 06:14:46 2001
***************
*** 0 ****
--- 1,28 ----
+ +============================================================================+
+ | DOM_NodeList.item(i) always returns a NULL node. |
+ +----------------------------------------------------------------------------+
+ | Bug #: 2179 Product: Xerces-C |
+ | Status: NEW Version: 1.4 |
+ | Resolution: Platform: PC |
+ | Severity: Major OS/Version: Windows NT/2K |
+ | Priority: Other Component: DOM |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-c-dev@xml.apache.org |
+ | Reported By: tbentley@iris.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ If you do the following:
+ // Find a process the child elements.
+ DOM_NodeList children = node.getChildNodes();
+ unsigned int count = children.getLength();
+ for (unsigned int i = 0; i < count; i++)
+ {
+ DOM_Node child = children.item(i);
+ if (!child.isNull() && child.getNodeType() == DOM_Node::ELEMENT_NODE)
+ {
+ Then child.isNull always returns true.
+ Count is greater than one and the children are all elements.
+ If I use getFirstChild and getNextSibling, it works.
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org