Questions tagged [tinyxml++]

TinyXML++ is a completely new interface to TinyXML that uses many of the C++ strengths. Templates, exceptions, and much better error handling.

About TinyXML++

Also known as TiCPP, TinyXML++ is a completely new interface to TinyXML that uses many of the C++ strengths. Templates, exceptions, and much better error handling. It is also fully documented in doxygen.

It has been tested in VC 6.0, VC 7.0, VC 7.1, VC 8.0, MinGW gcc 3.4.5, and in Linux GNU gcc 3+.

Documentation: https://rawgit.com/wxFormBuilder/ticpp/docs/ticpp.html

10 questions
19
votes
1 answer

Can TinyXml load Xml from string instead of file?

I'm using TinyXml library for my application but TiXmlDocument object just only can load Xml file. How can it load Xml from string. Could you tell me the way to do this. Thank you very much Tu.
user339996
  • 193
  • 1
  • 1
  • 5
4
votes
2 answers

TinyXML Iterating over a Subtree

Does anyone have code to iterate through the nodes of a subtree in TinyXML? IE: Given a parent, iterate through all its children and all of its children's children?
Raindog
  • 1,398
  • 2
  • 12
  • 26
2
votes
4 answers

Create xml using tinyxml

I have a problem. I need to create a following xml: Using c++ code I did the following: #include #include #include "tinyxml.h" void main(){ …
just me
  • 157
  • 1
  • 7
  • 18
2
votes
3 answers

Odd behavior from TinyXML++

Hoping some of you TinyXML++ people can help me out. Really, since you recomended to me before I think you owe me ;) I have the following code: //ticpp::Iterator< ticpp::Element > child( "SetPiece" ); ticpp::Iterator< ticpp::Node >…
Whaledawg
  • 3,974
  • 4
  • 24
  • 21
2
votes
1 answer

Print output in a single line in tinyxml

I am using TinyXML to save and print XML documents. While printing the document I am getting: 1 2 3 as result. But I want the result to be printed in a single line like…
user1465461
  • 377
  • 2
  • 5
  • 15
1
vote
1 answer

Linking problems with TinyXml++ and Visual C++ Express Edition 2008

I'm trying to use TinyXml++ in my project, and I have tested it successfully in a small program before. I recently decided to use it to read a configuration file in my current project and though the code compiled, I got a ton of linker errors…
NordCoder
  • 11
  • 2
1
vote
1 answer

premake not supporting vs2012?

Here is my senario: I am trying to build TinyXML++ using vs2012 Supposedly, premake is required to generate a *.sln for vs studio to build TinyXML++ lib files. But premake4.4 beta, I supposed the latest, seems not to support vs2012; It cannot build…
Nick X Tsui
  • 2,400
  • 6
  • 31
  • 62
0
votes
1 answer

tinyXml how to create xml

HI, I have the following: class pers { public: pers(); std::string name; long favourite_number; time_t curent_time; } I would like to create an xml using tinyXml. Here is the xml: me…
just me
  • 157
  • 1
  • 7
  • 18
0
votes
1 answer

TinyXml2 XMLDocument parse after create new Element crash

In TinyXmlv1 i can create a temp Xml Element then Parse document by TiXmlDocument doc; TiXmlElement * element = new TiXmlElement( "Hello" ); TiXmlText * text = new TiXmlText( "World" ); element->LinkEndChild( text ); doc.Parse(""); //…
xfr1end
  • 165
  • 4
  • 7
0
votes
2 answers

Error in TinyXml++ tutorial

trying to compile the TinyXml++ tutorial with CodeBlocks (16.01) and with VS2013 I get the same error at following line: ticpp::Element* pElem = doc.FirstChildElement()->NextSibling(); CodeBlocks error: invalid conversion from 'ticpp::Node*' to…
Sergio
  • 653
  • 6
  • 18