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

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
0
votes
1 answer

using pugixml to parse data using C++ but unable to get all the node attributes

I made a code that parse Function but it won't parse the Argument (name,type) My Code: xml_node GCC_XML = doc.child("GCC_XML"); { for (xml_node Function = GCC_XML.child("Function");Function; Function= Function.next_sibling("Function")) { …
Mic Hans
  • 27
  • 1
  • 5
-1
votes
1 answer

How to Parse the XML structure data in CPP while going and accessing each node?

I'm very new to XML parse in C++. I want to parse the XML. So, I'm using the PugiXML library. I mainly want to get the values from each of the children nodes. Here, is the sample code till here I have written, then I don't understand what to do…
-1
votes
1 answer

Compare std::vector of pairs with pugi::xml_object_range attributes

I'm writing some convenience functions for my XML parser based on pugixml, and now I have the problem that I want to retrieve only XML nodes with a specific attribute name and value! XML example:
leon22
  • 5,280
  • 19
  • 62
  • 100
-3
votes
1 answer

Get the value of a random parameter in pugixml

I have a question regarding the extraction of parameter values from an xml file using pugixml. I have an XML file with a hierarchical structure, and would like to retrieve the value associated with a specific parameter. Part of the file looks like…
Wballer3
  • 141
  • 1
  • 9
1 2 3
11
12