Questions tagged [rapidxml]

A general purpose XML parser for C++ designed for execution speed and practical usage. It can also modify nodes and output a full xml document.

Rapidxml is a header-only XML parser with high usability, portability, and very good W3C compatibility.

  • no dependencies (except standard C++ library <cassert>, <cstdlib>, <new>, and <exception>
  • character type agnostic: supports narrow and wide, wchar_t UTF-16 and UTF-32, and UTF-8 if endianness is native
  • special memory pool object management for speed
  • not fully W3C compliant: ignores DOCTYPE declarations, and minor incompatibilities
  • robust and has a large unit test harness
  • easy to learn and use: begin writing useful parsing code in less than five minutes
  • license is Boost Software License or MIT License
  • stable since 2006
  • an additional header-only file adds the ability to stream out and format an xml document
  • other header classes simplify iterating through a document, loading from a file, and get child counts

Rapidxml is widely cross-platform compatible, its execution speed is proportional to the length of the XML data parsed, and it requires no configuration and no metadata or schema.

182 questions
0
votes
1 answer

Using std::string Datatype in std::vector's Constructor

This isn't so much a specific question about RapidXML convention as it is a question about using a std::vector's constructor. In all examples that I have found of others using RapidXML, everyone always reads data into a vector of char's using the…
larrylampco
  • 597
  • 1
  • 9
  • 33
0
votes
1 answer

can't find the head file when compile rapidxml in ndk

i want to parse xml by rapidxml(on android devices, NDK). but when i include the rapidxml.hpp in my cpp file, and compile it. the compilor shows me that "jni/rapidxml.hpp:11:47: fatal error: cstdlib: No such file or directory". what's wrong with…
joyDream
  • 27
  • 5
0
votes
1 answer

C++ Using RapidXml parsing XML File, Wrapper Class, parse_error expect >

I'm trying to use the RapidXML to parse my XML file. And I did it following the example here. Instead of doing the parsing in the main function, I wrote a wrapper class called XMLParser to do the parsing job. And this really gives me a headache. The…
Dreamer
  • 563
  • 1
  • 8
  • 25
0
votes
1 answer

Using rapidxml to read and print. Problems printing multiple siblings C++

I basically just want to read and print out the contents of an xml file. My xml file (tree_test.xml) looks like this: Gambardella, Matthew XML Developer's…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c++" class="post-tag grid--cell" title="show questions tagged 'c++'" rel="tag">c++</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/parsing" class="post-tag grid--cell" title="show questions tagged 'parsing'" rel="tag">parsing</a> <a href="../../questions/tagged/printing" class="post-tag grid--cell" title="show questions tagged 'printing'" rel="tag">printing</a> <a href="../../questions/tagged/rapidxml" class="post-tag grid--cell" title="show questions tagged 'rapidxml'" rel="tag">rapidxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 11 '13 at 21:06">asked Jul 11 '13 at 21:06</time> <a href="../../users/2574149/ty-roderick" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2574149.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Ty Roderick" /> </a> <div class="s-user-card--info"> <a href="../../users/2574149/ty-roderick" class="s-user-card--link">Ty Roderick</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">51</li> <li class="s-award-bling s-award-bling__silver" title="2 silver badges">2</li> <li class="s-award-bling s-award-bling__bronze" title="3 bronze badges">3</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-17192037"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/17192037/error-no-match-for-operator-in-map-c" class="question-hyperlink">error: no match for operator= in map c++</a></h3> <div class="excerpt">im trying to import data from an XML file and save them in a 5D map // declaration of the map map<char *, map<char *, map<char*, map<char *, map<char*, map<char*, char*, cmp_str>, cmp_str>, cmp_str>, cmp_str>, cmp_str>, cmp_str> XmlData; im…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c++" class="post-tag grid--cell" title="show questions tagged 'c++'" rel="tag">c++</a> <a href="../../questions/tagged/dictionary" class="post-tag grid--cell" title="show questions tagged 'dictionary'" rel="tag">dictionary</a> <a href="../../questions/tagged/rapidxml" class="post-tag grid--cell" title="show questions tagged 'rapidxml'" rel="tag">rapidxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jun 19 '13 at 13:07">asked Jun 19 '13 at 13:07</time> <a href="../../users/1978560/ben-ishak" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1978560.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Ben Ishak" /> </a> <div class="s-user-card--info"> <a href="../../users/1978560/ben-ishak" class="s-user-card--link">Ben Ishak</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">669</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="11 silver badges">11</li> <li class="s-award-bling s-award-bling__bronze" title="27 bronze badges">27</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-16571478"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/16571478/rapidxml-comparing-node-values-testing-values" class="question-hyperlink">rapidxml comparing node values (testing values)</a></h3> <div class="excerpt">Im new to radidxml, I cant find a way to compare a node value to string. The only way I can figure out is to print it to a string, then test that value. if (cell_node->first_node("text:p")) { std::string test; print(test.begin(),…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c++" class="post-tag grid--cell" title="show questions tagged 'c++'" rel="tag">c++</a> <a href="../../questions/tagged/rapidxml" class="post-tag grid--cell" title="show questions tagged 'rapidxml'" rel="tag">rapidxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 15 '13 at 17:33">asked May 15 '13 at 17:33</time> <a href="../../users/523640/bryan-sammon" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/523640.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="bryan sammon" /> </a> <div class="s-user-card--info"> <a href="../../users/523640/bryan-sammon" class="s-user-card--link">bryan sammon</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">7,161</li> <li class="s-award-bling s-award-bling__gold" title="15 gold badges">15</li> <li class="s-award-bling s-award-bling__silver" title="38 silver badges">38</li> <li class="s-award-bling s-award-bling__bronze" title="48 bronze badges">48</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-16480971"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>4</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/16480971/strcmp-as-substitute-for" class="question-hyperlink">!strcmp as substitute for ==</a></h3> <div class="excerpt">I'm working with rapidxml, so I would like to have comparisons like this in the code: if ( searchNode->first_attribute("name")->value() == "foo" ) This gives the following warning: comparison with string literal results in unspecified behaviour…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c++" class="post-tag grid--cell" title="show questions tagged 'c++'" rel="tag">c++</a> <a href="../../questions/tagged/strcmp" class="post-tag grid--cell" title="show questions tagged 'strcmp'" rel="tag">strcmp</a> <a href="../../questions/tagged/rapidxml" class="post-tag grid--cell" title="show questions tagged 'rapidxml'" rel="tag">rapidxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked May 10 '13 at 11:11">asked May 10 '13 at 11:11</time> <a href="../../users/1854108/innkeeper" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1854108.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Innkeeper" /> </a> <div class="s-user-card--info"> <a href="../../users/1854108/innkeeper" class="s-user-card--link">Innkeeper</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">663</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="10 silver badge">10</li> <li class="s-award-bling s-award-bling__bronze" title="22 bronze badge">22</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-15425443"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/15425443/parsing-an-xml-tree-with-rapidxml-and-discarding-unwanted-nodes" class="question-hyperlink">Parsing an XML tree with RapidXML and discarding unwanted nodes</a></h3> <div class="excerpt">I am interested in using RapidXML to parse an XML tree; however, this XML has several layer of rows that I do not need. This is because it is a representation of a genetic tree and many layers are called "clade" which is essentially useless info to…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c++" class="post-tag grid--cell" title="show questions tagged 'c++'" rel="tag">c++</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/rapidxml" class="post-tag grid--cell" title="show questions tagged 'rapidxml'" rel="tag">rapidxml</a> <a href="../../questions/tagged/phylogeny" class="post-tag grid--cell" title="show questions tagged 'phylogeny'" rel="tag">phylogeny</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 15 '13 at 05:32">asked Mar 15 '13 at 05:32</time> <a href="../../users/2019846/jon-claus" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2019846.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Jon Claus" /> </a> <div class="s-user-card--info"> <a href="../../users/2019846/jon-claus" class="s-user-card--link">Jon Claus</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,862</li> <li class="s-award-bling s-award-bling__gold" title="4 gold badges">4</li> <li class="s-award-bling s-award-bling__silver" title="22 silver badges">22</li> <li class="s-award-bling s-award-bling__bronze" title="33 bronze badges">33</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-15300711"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/15300711/parsing-xml-inorder-c" class="question-hyperlink">Parsing XML inOrder C++</a></h3> <div class="excerpt">This is related to one of my previous questions. I'm trying to build a tree from an xml file. I plan to go through the xml file and create objects out of the data and create a vector of the objects in preorder and inorder so that I can construct the…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c++" class="post-tag grid--cell" title="show questions tagged 'c++'" rel="tag">c++</a> <a href="../../questions/tagged/recursion" class="post-tag grid--cell" title="show questions tagged 'recursion'" rel="tag">recursion</a> <a href="../../questions/tagged/binary-tree" class="post-tag grid--cell" title="show questions tagged 'binary-tree'" rel="tag">binary-tree</a> <a href="../../questions/tagged/rapidxml" class="post-tag grid--cell" title="show questions tagged 'rapidxml'" rel="tag">rapidxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card__deleted"> <time class="s-user-card--time" datetime="asked Mar 08 '13 at 18:21">asked Mar 08 '13 at 18:21</time> <div class="s-avatar s-avatar__32 s-user-card--avatar"> </div> <div class="s-user-card--info">user2067100</div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-15255697"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/15255697/compiling-errors-using-rapidxml-in-c-using-dev-c" class="question-hyperlink">Compiling errors using RapidXML in C++ using Dev C++</a></h3> <div class="excerpt">I am parsing an XML file for my C++ project in Dev C++ and I have the following code in the rapidxml_iterators.hpp file: typedef xml_node<Ch> value_type; typedef xml_node<Ch> &reference; typedef xml_node<Ch> *pointer; typedef typename std::…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c++" class="post-tag grid--cell" title="show questions tagged 'c++'" rel="tag">c++</a> <a href="../../questions/tagged/xml-parsing" class="post-tag grid--cell" title="show questions tagged 'xml-parsing'" rel="tag">xml-parsing</a> <a href="../../questions/tagged/tree" class="post-tag grid--cell" title="show questions tagged 'tree'" rel="tag">tree</a> <a href="../../questions/tagged/compiler-errors" class="post-tag grid--cell" title="show questions tagged 'compiler-errors'" rel="tag">compiler-errors</a> <a href="../../questions/tagged/rapidxml" class="post-tag grid--cell" title="show questions tagged 'rapidxml'" rel="tag">rapidxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 06 '13 at 18:58">asked Mar 06 '13 at 18:58</time> <a href="../../users/2137877/user2137877" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2137877.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user2137877" /> </a> <div class="s-user-card--info"> <a href="../../users/2137877/user2137877" class="s-user-card--link">user2137877</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">13</li> <li class="s-award-bling s-award-bling__bronze" title="4 bronze badges">4</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-15169943"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/15169943/c-rapidxml-get-sibling-of-the-same-type" class="question-hyperlink">C++ RapidXML get sibling of the same type?</a></h3> <div class="excerpt">So, in RapidXML, I'm trying to loop through my file to get the data from some tileset nodes: rapidxml::xml_node<> *root_node = doc.first_node("map"); for(rapidxml::xml_node<> *tileset = root_node->first_node("tileset"); tileset != 0; tileset =…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c++" class="post-tag grid--cell" title="show questions tagged 'c++'" rel="tag">c++</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/rapidxml" class="post-tag grid--cell" title="show questions tagged 'rapidxml'" rel="tag">rapidxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card__deleted"> <time class="s-user-card--time" datetime="asked Mar 02 '13 at 02:15">asked Mar 02 '13 at 02:15</time> <div class="s-avatar s-avatar__32 s-user-card--avatar"> </div> <div class="s-user-card--info">user569322</div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-13253544"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/13253544/how-to-read-information-from-a-xml-file-c" class="question-hyperlink">How to read information from a XML file c++</a></h3> <div class="excerpt"> Possible Duplicate: rapidxml: how to iterate through nodes? Leaves out last sibling Im trying to reas some information from a XML file using rapidXML but cant get it to work. The XML file looks like this: <MODESMESSAGE> …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c++" class="post-tag grid--cell" title="show questions tagged 'c++'" rel="tag">c++</a> <a href="../../questions/tagged/attributes" class="post-tag grid--cell" title="show questions tagged 'attributes'" rel="tag">attributes</a> <a href="../../questions/tagged/nodes" class="post-tag grid--cell" title="show questions tagged 'nodes'" rel="tag">nodes</a> <a href="../../questions/tagged/rapidxml" class="post-tag grid--cell" title="show questions tagged 'rapidxml'" rel="tag">rapidxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Nov 06 '12 at 14:51">asked Nov 06 '12 at 14:51</time> <a href="../../users/1803399/tobias" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1803399.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Tobias" /> </a> <div class="s-user-card--info"> <a href="../../users/1803399/tobias" class="s-user-card--link">Tobias</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">65</li> <li class="s-award-bling s-award-bling__bronze" title="7 bronze badges">7</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-12860480"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>3</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/12860480/rapidxml-adding-subtree-directly-as-value" class="question-hyperlink">Rapidxml: adding subtree directly as value</a></h3> <div class="excerpt">I'm trying to append a very big subtree using rapidxml in a dirty way, exploiting the value method rapidxml::xml_node<>* node = allocate_node(rapidxml::node_element, "tree"); node->value("<very><long><subtree></subtree></long></very>"); but it but…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c++" class="post-tag grid--cell" title="show questions tagged 'c++'" rel="tag">c++</a> <a href="../../questions/tagged/c" class="post-tag grid--cell" title="show questions tagged 'c'" rel="tag">c</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/rapidxml" class="post-tag grid--cell" title="show questions tagged 'rapidxml'" rel="tag">rapidxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Oct 12 '12 at 13:46">asked Oct 12 '12 at 13:46</time> <a href="../../users/1029516/cavaz" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1029516.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Cavaz" /> </a> <div class="s-user-card--info"> <a href="../../users/1029516/cavaz" class="s-user-card--link">Cavaz</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,996</li> <li class="s-award-bling s-award-bling__silver" title="24 silver badges">24</li> <li class="s-award-bling s-award-bling__bronze" title="38 bronze badges">38</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-12460385"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/12460385/rapidxml-parsing-misbehavior" class="question-hyperlink">rapidXML parsing misbehavior</a></h3> <div class="excerpt">I'm trying to parse a xml file: <?xml version="1.0"?> <settings> <output>test.dat</output> <width>5</width> <depth>4</depth> <height>10</height> </settings> main: int _tmain(int argc, wchar_t* argv[]) { std::string SettingsFile…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c++" class="post-tag grid--cell" title="show questions tagged 'c++'" rel="tag">c++</a> <a href="../../questions/tagged/rapidxml" class="post-tag grid--cell" title="show questions tagged 'rapidxml'" rel="tag">rapidxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card__deleted"> <time class="s-user-card--time" datetime="asked Sep 17 '12 at 13:34">asked Sep 17 '12 at 13:34</time> <div class="s-avatar s-avatar__32 s-user-card--avatar"> </div> <div class="s-user-card--info">user238801</div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-12255643"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/12255643/rapidxml-null-pointer" class="question-hyperlink">RapidXML NULL Pointer</a></h3> <div class="excerpt">I'm getting values of my config file with rapidXML in a kindly bad way. xml_document<> doc; doc.parse<parse_full>(buffer); int a = atoi(doc.first_node("master")->first_node("profile")->first_node("width")->value()); If the node doesn't exist…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c++" class="post-tag grid--cell" title="show questions tagged 'c++'" rel="tag">c++</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/memory" class="post-tag grid--cell" title="show questions tagged 'memory'" rel="tag">memory</a> <a href="../../questions/tagged/memory-leaks" class="post-tag grid--cell" title="show questions tagged 'memory-leaks'" rel="tag">memory-leaks</a> <a href="../../questions/tagged/rapidxml" class="post-tag grid--cell" title="show questions tagged 'rapidxml'" rel="tag">rapidxml</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 04 '12 at 01:10">asked Sep 04 '12 at 01:10</time> <a href="../../users/910824/adam-paquette" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/910824.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Adam Paquette" /> </a> <div class="s-user-card--info"> <a href="../../users/910824/adam-paquette" class="s-user-card--link">Adam Paquette</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,243</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="14 silver badge">14</li> <li class="s-award-bling s-award-bling__bronze" title="28 bronze badge">28</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/rapidxml_page=10" rel="prev" title="Go to page 10">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/rapidxml_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/rapidxml_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/rapidxml_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/rapidxml_page=12" rel="" title="Go to page 12">12</a> <a class="s-pagination--item" href="../../questions/tagged/rapidxml_page=13" rel="" title="Go to page 13">13</a> <a class="s-pagination--item" href="../../questions/tagged/rapidxml_page=12" rel="next" title="Go to page 12"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>