On Sun, Aug 10, 2008 at 6:27 PM, Daniel Burrell
<[EMAIL PROTECTED]> wrote:
> for some reason line 1 outputs "svgfile" to the screen, yet line 3 is never
> printed.
>
> 1) cout << XMLString::transcode(nd->getNodeName())<<endl;
> 2) if (nd->getNodeName() == XMLString::transcode("svgfile")) {
> 3) cout << "===========================================================";Could it be that you forgot << endl; at the end of those ? It gets in the buffer, but doesn't get outputted ? Also, getNodeName() returns a XMLCh *. And I doubt you'll find two different pointers have the same value. You might want to try something along the lines of: http://xerces.apache.org/xerces-c/apiDocs/classXMLString.html#7dbb1cb2b52525871ac83c6166d6e7f0 if (XMLString::compare (nd->getNodeName(), XMLString::transcode("svgfile"))) cout << "=====" << endl; HTH, S. -- question = ( to ) ? be : ! be; -- Wm. Shakespeare
