I'm trying to develop a XML text analysis with TinyXml. The problem is that the text arrive from a network connection and I get no file to give to TinyXml.
I've tried to use a TiXmlText but It seems it is not the good way.
So, how can I use TinyXml to parse an xml string, please?
Thanx,
BlaX
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm trying to develop a XML text analysis with TinyXml. The problem is that the text arrive from a network connection and I get no file to give to TinyXml.
I've tried to use a TiXmlText but It seems it is not the good way.
So, how can I use TinyXml to parse an xml string, please?
Thanx,
BlaX
You should instantiate a TiXmlDocument and use Parse :
TiXmlDocument doc;
doc = new TiXmlDocument;
doc -> Parse ("<?xml version='1.0'?><s/>");
...
delete doc;
Yves
Ok, thank you very much.
I'm not used to this, I'm using TinyXml for a long time to load config files, and I was struck!
Thanks again.
BlaX