David Bertoni <[EMAIL PROTECTED]> writes: > > DOMNodeList* xNodeList3 = xNode->getChildNodes(); > > const XMLSize_t ixNodeCount3 = xNodeList3->getLength(); > > > > for (int i3=0; i3<ixNodeCount3; i3++) > > You can either iterate through the children, or call > DOMNode::getTextContent(). My recommendation would be to iterate through > the children, as getTextContext() will allocate memory that you cannot free > without destroying the document.
Also using DOMNodeList for iteration over children is probably not a good idea either: DOMNodeList's item() member function has O(n) complexity. Accidently I wrote about these two functions in one of my blog posts: http://codesynthesis.com/~boris/blog/2006/11/28/xerces-c-dom-potholes/ hth, -boris -- Boris Kolpackov Code Synthesis Tools CC http://www.codesynthesis.com Open-Source, Cross-Platform C++ XML Data Binding
