Questions tagged [pugixml]

Light-weight, simple and fast XML parser for C++ with XPath support

Overview(from official website)

pugixml is a light-weight C++ XML processing library. It features:

  • DOM-like interface with rich traversal/modification capabilities
  • Extremely fast non-validating XML parser which constructs the DOM tree from an XML file/buffer
  • XPath 1.0 implementation for complex data-driven tree queries
  • Full Unicode support with Unicode interface variants and automatic encoding conversions

The library is extremely portable and easy to integrate and use.

pugixml is developed and maintained since 2006 and has many users. All code is distributed under the MIT license, making it completely free to use in both open-source and proprietary applications.

Links

170 questions
0
votes
1 answer

error call to member function set_value is ambigious (in xcode using pugixml library)

i am using pugixml in visual c++ express 2010. this code works. however when i use it in xcode. it gives me an error that 'call to member function ''set_value'' is ambigious'. can any body help in solving it or why it is giving me error in xcode.…
khan
  • 531
  • 6
  • 29
0
votes
1 answer

pugixml: selecting nodes fails

I'm using pugixml to parse the following xml:
Link1
Link2 etc... I want the value of every…
user3083672
  • 377
  • 1
  • 12
0
votes
1 answer

pugixml xpath -- node not found

I'm using pugixml's xpath functions to find certain nodes within a html document (downloaded through curl). I am using: pugi::xml_document doc; doc.load_buffer(htmlcontent.c_str(), htmlcontent.size()); pugi::xpath_node example=…
user3083672
  • 377
  • 1
  • 12
0
votes
3 answers

How to use pugixml in Dev-C++

I have never added a library to Dev-C++. I read the guide here. So I added two lines of code to my cpp file: #include "pugixml.hpp" #include "pugiconfig.hpp" But I get errors like this: [Linker error]…
newtphp
  • 245
  • 1
  • 4
  • 13
0
votes
1 answer

Reading data from file - store in variables or read again and again

I have an xml file which contains numerous data that is needed for a program. The data x,y,z are only needed for function 'a' while p,q,r are needed for the whole project. Some data items in the file tend to be very large. (i.e - a float vector with…
Madz
  • 1,273
  • 2
  • 18
  • 35
0
votes
1 answer

MFC file creation not working properly with pugixml

I'm trying to create an xml file using pugixml. The code is; //Open the save as diolog TCHAR szFilters[]= _T("Files (*.abc)|*.abc|All Files (*.*)|*.*||"); // Create an SaveAs dialog; the default file name extension is ".abc". CFileDialog…
Madz
  • 1,273
  • 2
  • 18
  • 35
0
votes
1 answer

Recursive pugixml, can't get values

Well, I got code pugi::xml_node text = doc.child("text").child("girl"); for (int i = 0; i < situations.size(); i++) { std::cout << situations[i] << std::endl; text = text.child(situations[i].c_str()); // problem } After that code, I can't…
0
votes
1 answer

PugiXML empty document without error

I've the following XML:
Victor Aurélio
  • 2,355
  • 2
  • 24
  • 48
0
votes
1 answer

C++ PugiXML Vector Iterators Incompatible Error

I have an application where I parse XML code into sprites with textures using PugiXML. However, I'm experiencing problems getting this one for loop working, as the compiler keeps returning the Expression: vector iterators incompatible run-time error…
Blaze356
  • 133
  • 1
  • 11
0
votes
0 answers

cocos2d-x pugi xml french words

I had some problem with parsing xml document with french words. For example pêche After parsing i have this: "p\xc3\xaache" instead of "pêche" Here is my code: for(pugi::xml_node child = parent.first_child(); child; child =…
0
votes
1 answer

pugiXML: Cannot iterate through siblings! Only loads the first

This is the XML code:
JohanLejdung
  • 353
  • 1
  • 4
  • 18
0
votes
1 answer

Using pugixml in wchar_t mode and in usual mode in one project

I have a project with many .cpp files. In some of these files I need to use pugixml in wchar_t mode and some of them are already implemented using char and pugixml in usual mode. I know I have to use definition #define PUGIXML_WCHAR_MODE When I…
spandei
  • 219
  • 3
  • 16
0
votes
1 answer

Unable to access XML nodes using in loop using pugixml

I have an XML file with the following format 1 Head 2 Right Hand 3
Ibrahim
  • 105
  • 3
0
votes
1 answer

pugixml: Cannot get children/cannot iterate

I am using pugixml for the first time and I am not able to correctly load a file into memory. My XML test document: I use following code to load the document and get the child: pugi::xml_document…
u7f1mrfpf
  • 31
  • 1
  • 7
0
votes
2 answers

Retrieving PCDATA xpath via the c++ pugixml library

I spent the last week reading and re-reading the pugixml documentation and I can find no method of retrieving the PCDATA with xpath. Please explain would I pull the text from title: Hello! Last time I asked…
user688579
  • 21
  • 1
1 2 3
11
12