1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

How do I parse an XML file using RapidXML?

Discussion in 'C' started by AlecTaylor, Nov 8, 2011.

  1. AlecTaylor

    AlecTaylor New Member

    Joined:
    Nov 8, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. AlecTaylor

    AlecTaylor New Member

    Joined:
    Nov 8, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    My tinyXML attempt: ideone.com/yC1l8

    (still not working)
     
  3. AlecTaylor

    AlecTaylor New Member

    Joined:
    Nov 8, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Figured out the rapidxml version.
     

Share This Page