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
0 answers

Segfault on IterateChildren() and NextSiblingElement() calls

I'm trying to loop through elements in an HTML document, and pretty much copied and pasted the code from the TinyXML documentation, but this segfaults after it has gone through every child. std::string html =…
howard
  • 644
  • 2
  • 7
  • 15
0
votes
1 answer

Does tinyxpath 1.3.1 support xpath 2.0?

I'm having some troubles computing complex xpaths with tinyxpath 1.3.1. Those xpaths are perfectly computed in this online xpath tester: http://www.qutoric.com/xslt/analyser/xpathtool.html. xpath samples I'm…
rturrado
  • 7,699
  • 6
  • 42
  • 62
0
votes
2 answers

How do I read content within tags with TinyXML?

I'm trying to read content within tags, but I'm not succeeding. Here's what I'm trying: int main() { TiXmlDocument *doc = new TiXmlDocument("simple-scene.xml"); doc->LoadFile(); cout << doc->FirstChildElement("width")->GetText(); …
0
votes
1 answer

Strange segfault with tinyxml2

I've a segfault that I don't understand. It always occurs at i = 0 and j between 1000 and 1100. Here is the backtrace and all the sources required to see the problem: https://gist.github.com/Quent42340/7592902 Please help me. EDIT: Oh I forgot. On…
Unarelith
  • 495
  • 3
  • 13
0
votes
1 answer

Usage of const directive in C++ in general, in particular in Tiny XML Library:

I'm an experienced developer in a few compiled OOP languages, particularly Object Pascal and C#. Have 'messed around' with C++ for years but recently started getting more serious about C++ development. Most of concepts in C++ are quite easy for me…
Vector
  • 10,879
  • 12
  • 61
  • 101
0
votes
1 answer

Problems with xml parsing using tiny xml in c++?

I am trying to parse the following xml using tiny xml parser.I am trying to get the value of all producer and consumer attributes of q2channel tag in the xml file.I am using tinyxml2. So far I have written the following code but I am stuck here as…
zzzzz
  • 1,209
  • 2
  • 18
  • 45
0
votes
2 answers

tinyxml library include in Visual studio

I am trying to include the TinyXml library to my Visual Studio C++ project with no success. I have downloaded the library folder with the .h and .cpp files and tried all kind of adding... it doesn't help... I found this tutorial, and did as it…
0
votes
1 answer

how to write data TINYXML2 on IOS

My test.xml like this: 5 1 2 My Code here: std::string…
0
votes
1 answer

Xml file are saved in two different path

I created application that store some data to XML file. The issues is with the path of the XML saving. Am using TinyXML to save the data in vc++. When I deploy this application, it installs in "C:\Program files(x86)\applicationname " and when I run…
user1858925
  • 59
  • 1
  • 10
0
votes
1 answer

load xml values and pass it into string in vc++

Am working in vc++ and trying to load an xml file and load the entire data into a string but am not getting the results char text[700] = {""}; TiXmlDocument doc( "'demotest.xml" ); bool loadOkay = doc.LoadFile(); if ( !loadOkay ) { printf(…
user1441251
  • 81
  • 3
  • 8
0
votes
1 answer

Why does TinyXPath give different results for the same object when called in two different classes?

I'm building a project on Ubuntu in which I'm using TinyXPath library along with TinyXml to parse the following xml: ...
Nikopol
  • 1,091
  • 1
  • 13
  • 24
0
votes
3 answers

Link problems on Release x64

I have a Visual Studio 2010 C++ project that links statically to tinyxmlSTL 2.5.5 (tinyxmlSTL.lib) and zlib 1.2.7. (zlibstat.lib). There are 4 builds in total covering both x86 and x64 as well as Debug and Release. All combinations produce working…
wpfwannabe
  • 14,587
  • 16
  • 78
  • 129
0
votes
1 answer

Syntax for nesting xml string into xml element

I need something like this: (*) (*) HelloWorld How can I insert the (*) xml string to the placeholder in xmlData (well formed XML)? (parsed with tinyXML in…
leon22
  • 5,280
  • 19
  • 62
  • 100
0
votes
0 answers

TinyXML seg fault

Is there any inherent memory leakage problem associated with tinyXML? I don't know why I am getting this strange seg fault. In the following function, whenever I try to increase the size of element name("Connecor" &"laneFro"), the following if…
rahman
  • 4,820
  • 16
  • 52
  • 86
0
votes
1 answer

Pugixml - Convert xml element content to C++ array

In my xml file I have arrays of ints written as follows: "1 10 -5 150 35", and I am using pugixml to parse it. I know pugixml provides methods such as as_bool, or as_int, but does it provide an easy way of converting the string representation of an…
Lanaru
  • 9,421
  • 7
  • 38
  • 64
1 2 3
14
15