Hi all,

I have a question about the getElementsByTagName()-function.

Imagine following simple xml structure:

<bla>
        <huh>woezaa</huh>
</bla>

I'm using DOM to parse the file. But why is the following printing 'huh' and
not 'woezaa', when I'm currently in <bla>?

if (strcmp(currentNode->getNodeName(), "bla") == 0)
{
        DOMText* nodeLocation = (DOMText*) (((DOMElement*)
currentNode)->getElementsByTagName(XMLString::transcode("huh"))->item(0));

        cout << XMLString::transcode(nodeLocation->getData());
}

I think I'm missing something, but I can't find out what.

Thanks a lot for your time,

--
Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to