Hi,
I'm pretty new to TinyXML but i have to use someone else system that uses it i'm i'm having trouble with it.
i'm trying to get a reading of the field <test> in the following
<root> <test></test> </root>
it currently crashed as there's nothing in <test>. Is there a way to get a NULL out of there?
i've seen
const char* TiXmlElement::GetText() const ... if ( childText ) { return childText->Value(); } ...
i guess i don't have (childText ) but i may be wrong... if the fct reach return 0;.... 0 being treated as char * is probably what is crashing my app.
Thanks for any info on this :)
Feel free to move this Thread if i'm in the wrong forum
Log in to post a comment.
Hi,
I'm pretty new to TinyXML but i have to use someone else system that uses it i'm i'm having trouble with it.
i'm trying to get a reading of the field <test> in the following
<root>
<test></test>
</root>
it currently crashed as there's nothing in <test>. Is there a way to get a NULL out of there?
i've seen
const char* TiXmlElement::GetText() const
...
if ( childText ) {
return childText->Value();
}
...
i guess i don't have (childText ) but i may be wrong... if the fct reach return 0;.... 0 being treated as char * is probably what is crashing my app.
Thanks for any info on this :)
Feel free to move this Thread if i'm in the wrong forum