Menu

How to TinyXml without any file?

2004-11-24
2013-05-20
  • Xavier Blanadet

    Xavier Blanadet - 2004-11-24

    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

     
    • Yves Berquin

      Yves Berquin - 2004-11-24

      You should instantiate a TiXmlDocument and use Parse :

      TiXmlDocument doc;
      doc = new TiXmlDocument;
      doc -> Parse ("<?xml version='1.0'?><s/>");
      ...
      delete doc;

      Yves

       
    • Xavier Blanadet

      Xavier Blanadet - 2004-11-25

      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

       

Log in to post a comment.