Questions tagged [mini-xml]

Mini-XML is a small XML library that you can use to read and write XML and XML-like data files in your application without requiring large non-standard libraries. Mini-XML only requires an ANSI C compatible compiler and a 'make' program.

16 questions
5
votes
2 answers

miniXML parsing C API

I'm trying parse the follow XML file: Root Pai_1 Pai1,Filho1 Pai1,Filho2 Pai_2 Pai2,Filho1 Pai2,Filho2
Ricardo Crudo
  • 186
  • 5
  • 10
3
votes
0 answers

mini-XML - cannot find next sibling node

I cannot find the next gauge node after picking up the first. It seems that mxmlGetNextSibling(...) ought to do it, but I get a null. I have tried various combinations of min-XML functions but cannot find out what I am doing wrong. I have attached a…
Dirk Bruere
  • 237
  • 2
  • 15
2
votes
2 answers

How to make the presentation of minixml data more readble?

I m playing with minixml in my C program. And when I save The minixml tree into a file with the mxmlSaveFile(bkp_tree, fp, MXML_NO_CALLBACK); function I get the whole xml data in one bloc . There is no organization in displaying the xml structure in…
MOHAMED
  • 41,599
  • 58
  • 163
  • 268
1
vote
2 answers

C++: Trouble loading long string from XML file using Mini-XML

I'm using the Mini-XML library to parse and XML file. I am able to load just about every element and attribute, but I am having trouble loading a long string. Here is the relevant part of the code: //Load XML file into XmlO void load(wxString…
Biosci3c
  • 772
  • 5
  • 15
  • 35
1
vote
3 answers

Parsing a XML file in C using MiniXML

I'm using the MiniXML library to parse a XML file in C, however when i try to read the node's value it returns NULL. Here's the code: FILE *fp; mxml_node_t *tree; fp = fopen("test.xml", "r"); tree = mxmlLoadFile(NULL, fp,…
Igor Azevedo
  • 1,145
  • 1
  • 10
  • 17
1
vote
1 answer

How to read xml value with space

I write an xml document like this: aa bb cc dd aaa bbb ccc ddd I try to parse this document with minixml…
developer
  • 4,744
  • 7
  • 40
  • 55
0
votes
1 answer

minixml undefined reference to `mxmlNewXML'

I am having a problem getting the minixml library pulled into my project. I followed the documentation on minixml page here http://www.minixml.org/documentation.php/install.html There were no errors doing the install and I see the .h file in…
user623879
  • 4,066
  • 9
  • 38
  • 53
0
votes
1 answer

MiniXML: parsing xml in C

I am parsing an xml file in C using Minixml. I want to get the values "check-time", "check-key" etc from this small eg. file: check-time
user489152
  • 907
  • 1
  • 23
  • 42
0
votes
1 answer

Mini-XML unresolved external symbol

I followed the documention, and copied sample code, but I got errors: http://michaelrsweet.github.io/mxml/ Error LNK2019 unresolved external symbol _mxmlDelete referenced in function _load_rate Error LNK2019 unresolved external symbol…
0
votes
1 answer

C++: Trouble with parsing XML file (MXML library)

I am having an issue with the following code. It uses the Mini-XML library to extract elements from an xml file. It compiles and runs fine, except that it is unable to get the last "radius element," returning NULL instead (it crashes if I don't…
Biosci3c
  • 772
  • 5
  • 15
  • 35
0
votes
1 answer

Creating a xml file using mini-xml library

I use mini-xml to create a xml file. My format is as follow. imglab dataset Created by imglab…
batuman
  • 7,066
  • 26
  • 107
  • 229
0
votes
1 answer

-lmxml library not found in mini-xml?

I've built and installed mini-xml already on my computer, but when I try to compile their test program with gcc testmxml.c -lmxml -o myprogram, the error ld: library not found for -lmxml Any solutions to this problem?
0
votes
1 answer

Xml loaded without values

I have xml.xml file: Root Pai_1 Pai1,Filho1 Pai1,Filho2 Pai_2 Pai2,Filho1 Pai2,Filho2 This file is…
vico
  • 17,051
  • 45
  • 159
  • 315
0
votes
3 answers

Trouble with MXML C

Here is an XML file I'm trying to parse with MXML library:
REQ 4567
10h02
  • 35
  • 5
0
votes
1 answer

minixml issue when the txt value contains space

I have the following xml file:
text with space
If I load the xml file in the mxml node tree with mxmlLoadFile(), then I will get 3 MXML_TXT childs under the tag MXML_ELEMENT. each child contains a substring. The first…
MOHAMED
  • 41,599
  • 58
  • 163
  • 268
1
2