How to parse the XML file in RapidXML.

Posted by user337891 on Stack Overflow See other posts from Stack Overflow or by user337891
Published on 2010-05-11T04:12:28Z Indexed on 2010/05/11 4:24 UTC
Read the original article Hit count: 1362

Filed under:
|
|

I have to parse a xml file in C++. I was researching and found rapidxml library for this.

I have doubt about "doc.parse<0>(xml)"

can xml be .xml file or it needs to be a string or char *?

If can take only string or char * then I guess I need to read the whole file and store it in a char array and pass the pointer of it to the function?

Is there a way to directly use file because I would need to change the xml file inside the code also.

If it is not possible in RapidXML then please suggest some other xml libraries in C++.

Thanks!!!

Ashd

© Stack Overflow or respective owner

Related posts about rapidxml

Related posts about Xml