Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How do I parse an XML file using RapidXML? (http://www.go4expert.com/forums/i-parse-xml-file-using-rapidxml-t27116/)

AlecTaylor 8Nov2011 22:47

How do I parse an XML file using RapidXML?
 
Good morning,

I've been trying with various libraries (everything from pugixml to RapidXML) but have been unable to parse a simple XML file. I want to grab all the inner text of each page->text into separate std::string's., so 1 page per std::string.

My RapidXML attempt: ideone.com/XWylb

My pugiXML attempt: ideone.com/RzN6X

XML file: ideone.com/wrG13

Can you help me get one to work?

Thanks for all suggestions,

Alec Taylor

PS: Preferably I would like the RapidXML one to work.

AlecTaylor 9Nov2011 09:53

Re: How do I parse an XML file using RapidXML?
 
My tinyXML attempt: ideone.com/yC1l8

(still not working)

AlecTaylor 9Nov2011 14:49

Re: How do I parse an XML file using RapidXML?
 
Figured out the rapidxml version.


All times are GMT +5.5. The time now is 04:13.