xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Billen" <pe...@clueless.be>
Subject question about QElement::getElementsByTagName()
Date Mon, 08 Mar 2004 13:24:28 GMT
Hi all,

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

Imagine following simple xml structure:


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*)

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

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

Thanks a lot for your time,


To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org

View raw message