XML C++/DOM problems....
#1
Scooby Regular
Thread Starter
Anybody online used the XML DOM model, preferably in C++ before ? Having trouble accessing information from a DOMElement, i.e.
<ScoobyNet>It's A Scorcher!</ScoobyNet>
I can get access to it's "Name" part of the DOMNode(ScoobyNet), but can't seem to get to the "It's A Scorcher" value anywhere : it's not in the Value part of the DOMNode.
Anybody ? I suspect it's probably staring at me in the face....
[Edited by BoxerFlat4 - 4/29/2003 2:11:02 AM]
<ScoobyNet>It's A Scorcher!</ScoobyNet>
I can get access to it's "Name" part of the DOMNode(ScoobyNet), but can't seem to get to the "It's A Scorcher" value anywhere : it's not in the Value part of the DOMNode.
Anybody ? I suspect it's probably staring at me in the face....
[Edited by BoxerFlat4 - 4/29/2003 2:11:02 AM]
#5
Scooby Regular
Thread Starter
Thanks guys...
Found the problem, was using a DOMTreeWalker to process the document, and it wasn't behaving as I expected. Turned out I was filtering out all nodes EXCEPT element nodes, which meant I never had access to the relevant text in the first place.
Found the problem, was using a DOMTreeWalker to process the document, and it wasn't behaving as I expected. Turned out I was filtering out all nodes EXCEPT element nodes, which meant I never had access to the relevant text in the first place.
Thread
Thread Starter
Forum
Replies
Last Post