Questions tagged [tinyxml]

TinyXML is a simple, small C++ XML parser and generator library.

TinyXML is a simple, small, C++ parser that can be easily integrated into other programs. It is released under the ZLib license.

In brief, TinyXML parses an XML document, and builds from that a Document Object Model (DOM) object that can be browsed, manipulated and serialized within your C++ code. TinyXML also allows you to construct an XML document from scratch with C++ objects and write this to disk or another output stream.

TinyXML is designed to be easy and fast to learn. It consists of two headers and four source files which can either be compiled into your binary or built into a static library.

TinyXML attempts to be a flexible parser, but with truly correct and compliant XML output. It should compile on any reasonably C++ compliant system, does not rely on exceptions or RTTI, and can be compiled with or without STL support. TinyXML fully supports the UTF-8 encoding, and the first 64k character entities. However, TinyXML doesn't parse or use or .

219 questions
0
votes
1 answer

Saving and loading files with tiny xml

I'm quite new to TinyXml and I'm having some problems.I'm trying to learn how to create and read files. I can read data from this example Go to the…
Rafal Rebisz
  • 189
  • 2
  • 7
0
votes
1 answer

QT duplicate symbol in mainwindow.o and ***.o file

I am a little confused, I am trying to develop a simple application. Application Flow: MainWindow -> Dialog 1 -> Dialog 2. MainWindow imports Dialog1.h and Dialog1.h imports Dialog2.h 1) If I import TinyXML Libraries in both Dialog1.cpp and…
Aakash Thakkar
  • 301
  • 1
  • 3
  • 20
0
votes
1 answer

Performance issues while searching for XPath using TinyXPath

I have a fairly large XML file (~11MB) and I'm using TinyXPath to locate some nodes. Despite the fact that the node I'm trying to locate cannot be confused with other nodes later in the DOM, it is taking several minutes for the XPath query to…
djs
  • 1,660
  • 1
  • 17
  • 35
0
votes
2 answers

TinyXml SetAttribute value without quot

I have used tinyxml to produce one xml. The xml is as below But i wanted this exm val to come as integer (without quote). like Any…
0
votes
1 answer

TinyXML cant compare Attribute to the char

bool win::checkIfFScreen(sf::RenderWindow &window) { TiXmlDocument doc; TiXmlElement * fullscreen; if(!doc.LoadFile("videoSettings.xml")) { fullscreen = new TiXmlElement( "Window" ); …
user140345
  • 135
  • 1
  • 10
0
votes
1 answer

tinyxml parsing xml file

I have a xml file like this:
Ono
  • 1,357
  • 3
  • 16
  • 38
0
votes
1 answer

unable to match function/method definition

I'm trying to implement a templated class that contains a templated method. template class ReferenceXML { public: template static tinyxml2::XMLElement* addChildAtEnd ( tinyxml2::XMLElement*…
Mihai Galos
  • 1,707
  • 1
  • 19
  • 38
0
votes
0 answers

TinyXML TiXmlDocument::StreamOut unresolved at link time

Using TinyXML with TIXML_USE_STL (anyway doesn't change behavior) My code TiXmlDocument doc(pszFileName); bool loadOkay = doc.LoadFile(); if (!loadOkay) {_ASSERTE(0); return(0);} I just got one and only one unresolved: unresolved…
Gordon88
  • 64
  • 3
0
votes
1 answer

TinyXML insert at last position.

I have a xml file that looks something like this
testus
  • 183
  • 2
  • 21
0
votes
2 answers

C++ Segmentation Fault - tinyXML

I am encountering a segmentation fault when I am trying to execute my code, it compiles without an errors/warnings but gives the error Segmentation fault when executed. Here is the code snippet below. XMLElement *pStartTimeStamp =…
Colin747
  • 4,955
  • 18
  • 70
  • 118
0
votes
1 answer

Is there something like GetTextNode in TinyXml?

In my current project I have to modify several XML documents using tinyXML. I didn't find a function SetText(const char*). I know that instead you have to create the TiXmlText and link it to the Element: TiXmlElement* pParent = ...; TiXmlText*…
Chris
  • 1,508
  • 1
  • 11
  • 30
0
votes
1 answer

tinyxml load fails after using GetOpenFileName to retrieve xml filename

I was already using tinyxml 1 before I implemented the function GetOpenFileName in my code, so I know the load works whenever I give it a relative path or an absolute path. I just don't understand why it doesn't work whenever the function…
Ada
  • 127
  • 1
  • 2
  • 13
0
votes
1 answer

Using TiXmlElement vector in std::map

While using TiXmlElement vector of tinyxml API in std::map, visual studio is giving compile time error. My code is .. #include "tinyxml.h" #include #include #include using namespace std; class childCounter { public: …
Raki
  • 329
  • 3
  • 18
0
votes
3 answers

Inserting a subtree from text into an existing XML file using tinyxml2

I was not allowed to create the new tag 'tinyxml2', that's why I am using the tag 'tinyxml', however I am using 'tinyxml2' ! I am trying to insert a subtree element to an existing XML file. My problem is, that after running the program and checking…
Dino
  • 35
  • 1
  • 7
0
votes
1 answer

I need a way to extract the value between the tags, given a path in the XML. How can I use TinyXpath for this?

XML EXMAPLE: hello abcd If the Xml file looks like above and I give an input path "first node/second node", I must be able to…
iShrivatsa
  • 21
  • 3