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: [EMAIL PROTECTED]                                  |
+ |  Reported By: [EMAIL PROTECTED]                                            |
+ |      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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to