Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
50 views

I'm trying to read an XML file with the structure <name>search_name</name> <Polygon> <outerBoundaryIs> <LinearRing> <coordinates> ...
SeedlessKiwi's user avatar
1 vote
1 answer
52 views

How can pugixml generate an attribute without a value? Consider the following desired html: <option value="book" selected>book</option> The question is about the selected ...
teusbenschop's user avatar
1 vote
1 answer
112 views

I have a CMake&C++ project where I prepared a condensed wrapper for pugixml. This wrapper is then linked to my io.lib library and works nicely on both ubuntu-22.04 and windows-latest. I then added ...
skrat's user avatar
  • 748
-2 votes
1 answer
165 views

Using pugixml, and C++, I can't parse the following to get Value and Result: case #1 <Response> Value="HERE" Result="1" </Response> Is this xml format considered ...
user24918671's user avatar
0 votes
1 answer
400 views

am trying to read an xml file in visual studio using the pugixml parser. i have downloaded the parser. but am wondering how i can link it with my c++ code. like how to configure the include ...
Elijah Eisenman's user avatar
2 votes
2 answers
417 views

I am trying to compile a project in C++ coded by other persons (Orthanc for the people that knows a bit of medical imaging) on Ubuntu 22.04. One library needed is pugixml but CHECK_INCLUDE_FILE_CXX ...
Broot's user avatar
  • 53
0 votes
1 answer
215 views

I'm using the pugixml library, and i try to add some content (nodes) with the fillWeek() function after sorting existing nodes in my xml file, but the problem is, when i call the sort() function, ...
Bo Halim's user avatar
  • 1,774
0 votes
0 answers
67 views

I'm using the PugiXML library in a C++ project and I have the following structure in an XML file. How can I count the number of Plan nodes? <Profiles> <Plan> <Name>Foo<...
Caglayan Dokme's user avatar
0 votes
0 answers
160 views

I have an x64 MFC application (VS2019, fresh project from the wizard and filled with lots of old project code). Debug build is working fine but the project has a problem to start up in the Release ...
Forrest's user avatar
  • 31
2 votes
1 answer
3k views

I try to create a compressed file and insert an xml file in it using two libraries (pugixml / libzip), everything goes without error, but when I open the xml file, the encoding at the beginning of the ...
Al Tilmidh's user avatar
0 votes
0 answers
373 views

I know there's already a way to loop through a file with pugi::xml_node::traverse, but I'm very interested in how things work, so I want to reimplement it using a recursive function. Currently, I can ...
Chadribleu's user avatar
0 votes
1 answer
2k views

I am trying to build a tool from a git repo and after executing "cmake .." I get the following error: Could not find a package configuration file provided by "PugiXml" with any of ...
lasJac's user avatar
  • 49
0 votes
1 answer
426 views

I have 2 functions: void XMLParser::ParseScene(const char* path) { // Load the XML file pugi::xml_document doc; pugi::xml_parse_result result = doc.load_file(path); scene = doc.child(&...
Valentin Popescu's user avatar
0 votes
1 answer
467 views

I have to replace in multiple template_xml multiple tags to build some web services requests. While with pugixml i can access a tag like this doc.child("tag1").child("tag2").etc i ...
rockstiff's user avatar
  • 383
0 votes
0 answers
551 views

I'm using pugiXML to write to XML. This is demo: //--open file pugi::xml_document doc; pugi::xml_parse_result result = doc.load_file(filePath.c_str()); //--add node pugi::xml_node nodeEventLogger = ...
Ivan's user avatar
  • 85
0 votes
1 answer
727 views

i try to get pugixml running in github actions. And i would be happy with any solution that is working... I added the download to the cmake.yml run: sudo apt-get update && sudo apt-get ...
Patrick's user avatar
1 vote
1 answer
3k views

I get a child node this way: pugi::xml_node child = root.child("aaa") I would like to check if that child node exists. Should I just call child.empty() ?
Irbis's user avatar
  • 1,581
0 votes
1 answer
2k views

I have a xml document with a node which has children nodes but I want to iterate over specific nodes which names are stored in the array, for example: const char* childrenNodes[]={"childNodeA&...
Irbis's user avatar
  • 1,581
0 votes
1 answer
4k views

I am trying to find a way to convert JSON string to XML document. For this we have evaluated PICOJSON to parse JSON and Pugixml to generate the XML document. I know this is way easy in .Net and JAVA. ...
user804401's user avatar
  • 2,002
-1 votes
1 answer
513 views

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 ...
Abhishek Kumar Singh's user avatar
0 votes
1 answer
146 views

I want to configure a device using an XML file and was thinking that I can make the individual pugi::xml_nodes first with the values I need and later on make them children of a document or some parent ...
Andrei's user avatar
  • 99
0 votes
0 answers
121 views

sorry in advance if the question is a trivial one. I have a 32-bit machine running CentOS7, and I would need to install the pugixml package (v >= 1.0); so far, I didn't manage to (the standard sudo ...
mm25's user avatar
  • 11
1 vote
0 answers
556 views

this is my code: void SaveHandler::saveGrid(TileGrid &grid, const char * Filename, bool saveToSceneFile) { pugi::xml_node gridNode; for (int L = 0; L < grid.m_tileLayers.size(); L++) { ...
Ronald joe's user avatar
0 votes
1 answer
369 views

i'm trying to pass a value from a file into tileNode.find_child_by_attribute("tileset","firstgid",container[0]).attribute("source").as_string(). it should return a string for an image path. #include ...
no_brain_cells's user avatar
1 vote
1 answer
488 views

How can I add an xml namespace declaration to my xml_document using pugixml? I tried this, which results in a invalid xml (invalid char ":", says my validator): xml_document doc; auto ...
nabulke's user avatar
  • 11.3k
1 vote
2 answers
2k views

I parse a document and want to retrieve part of the XML tree as string. The document (example): <?xml version="1.0"?> <MyConfig> <MyData> <Foo bar="baz>42</Foo&...
Tomáš Zato's user avatar
1 vote
1 answer
1k views

I have a configuration file saver/loader. In addition to the expected data, there is a <CustomData> node. When saving the node, we'd simply have a std::string _customData and add it to the node, ...
Tomáš Zato's user avatar
0 votes
1 answer
376 views

This is something that I feel should be easy, but after many hours I still can't figure it out. I tried googling it but it would seem the only way my brain wants to ask the question is in 3 lines of ...
Etienne Poulin's user avatar
0 votes
1 answer
3k views

I am trying to merge two (or more) nodejs apps. 1st is login application that takes you to your dashboard. When you are there you should see another app that is dedicated to you, that runs on ...
Baha's user avatar
  • 3
1 vote
1 answer
135 views

we are seeing that the address of all the children at the same level are the same, this is hurting our logic as we want to store the addresses of xml nodes for later processing. here is the sample ...
Ravikumar Tulugu's user avatar
0 votes
2 answers
2k views

I'm new to xml, and using the pugixml documentation I haven't been able to read a node attribute to the console. The core of the issue is that I don't understand how the node accessing structure works ...
Alex's user avatar
  • 11
1 vote
1 answer
3k views

I am trying to compile this project: https://github.com/computationalpathologygroup/ASAP.git from source. Pugixml is a dependency I have built pugixml from source and set PugiXML_DIR and ...
aditya sista's user avatar
0 votes
1 answer
205 views

I have got a non empty pugi::xml_node my_node;. If I print it with my_node.print(std::cout); I can clearly see that the contents of this node are okay. Let's say it's: <my_class id="0" name="my ...
Denis's user avatar
  • 758
1 vote
2 answers
200 views

I'm trying to write a generic wrapper for the C++ pugi xml library that can save and store values to/from xml. They have implemented their xml node attributes' (stored as strings) access functions ...
jpsalm's user avatar
  • 328
1 vote
1 answer
573 views

I am using pugixml to parse a file. I have been using an xml_tree_walker and I have a variable I want to modify as the walker walks through the xml. I am currently using a global variable but don't ...
EngineerCamp's user avatar
0 votes
1 answer
300 views

currently im working in parsing xml by c and c++ im using pugixml library in c++ and libxml2 library in c for parsing xml assume i have root element in xml as "configuration" and it have 4 child ...
Muthu Selvam's user avatar
3 votes
1 answer
1k views

I am using PugiXml library for XML related operations. My XML File: <CurrentStatus> <Time Stamp= "12:30"> <price>100</price> <amount>1</amount>...
skm's user avatar
  • 5,787
-3 votes
1 answer
95 views

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 ...
Wballer3's user avatar
  • 151
0 votes
1 answer
792 views

I'm trying to load an XML file from an URL using pugixml parser. The problem is that if you want to load a file from URL you have to load it from memory which it's very confusing for me. This is what ...
theg's user avatar
  • 579
0 votes
1 answer
479 views

What I have so far can delete all the children of the actual node I want to delete but not the node itself. pugi::xml_document doc; pugi::xml_parse_result result = doc.load_file("config/config.xml"); ...
user1582859's user avatar
0 votes
1 answer
95 views

XML file tree.xml: <?xml version="1.0"?> <mesh name="mesh_root"> some text <![CDATA[someothertext]]> some more text <node attr1="value1" attr2="value2" /> &...
user4035's user avatar
  • 24k
0 votes
0 answers
392 views

I have an XML node that I want to represent two integer values and an integer array. I have chosen to do it like this: <MyNode a="4" b="8"> <c_array> <c_value>"1"</...
DavidA's user avatar
  • 2,389
1 vote
1 answer
276 views

I'm trying to compress data from a pugi::xml_document. This is what I tried : template<class T> void save(const T &object, const QString &path) { pugi::xml_document doc; object....
Louis Etienne's user avatar
2 votes
1 answer
4k views

I am new to CMake and having trouble understanding how to use it. I have a cross-platform c++ project. It builds using CMake and my CMakeLists.txt lives in a folder called MyProject along with the ...
Valentin's user avatar
  • 1,178
0 votes
2 answers
2k views

I have an object list and wanna serialize it to xml. My object is: struct PingLogDto { int PingLogID; int HardwareHostID; std::string PingLogRoundtripTime; }; And here i make my list ...
Marijke Buurlage's user avatar
0 votes
1 answer
1k views

I use pugi::XML parser and i want to set the precision for the floating point numbers. I have already used the rounding function on the float variable, but while printing with pugi::xml, it is printed ...
Ashoka K's user avatar
  • 463
0 votes
1 answer
950 views

I'm trying to extract data from an XML that looks as shown in the image below using pugiXML traverse function. i'm able to print out all the data from the XML file using this function, however im not ...
user1754598's user avatar
0 votes
1 answer
476 views

So I have 2 static libs defined like this: StaticLib1 // StaticLib1.h #pragma once class StaticLib1 { public: void doSomething1(); }; cpp: // StaticLib1.cpp #include "pugixml.hpp" #include "...
Lester Dela Cruz's user avatar
2 votes
1 answer
536 views

I try to develop a package system for a game server engine i use, so, upon start i read a XML file and add the nodes to a list so i can use later. I can read the list after i created it, in same ...
KrisInception's user avatar
1 vote
1 answer
540 views

I have a reference to an xml_node. Is there a way to change it to be a comment type node (node_comment)? Essentially to comment the node out.
ilya1725's user avatar
  • 5,119