Parse a xml file in vc++

Feb 9, 2012 at 10:57am
Hi all,

I have to write a program in VC++6.0 in which I have to read a xml file into buffer and then parse it to display the contents and values of all the nodes..

I am able to read it into buffer but it not able to parse it.
Can anyone help me as soon as possible???
Feb 9, 2012 at 12:32pm
I suggest you use a XML parser. Have a look at this. Its simple enough

www.grinninglizard.com/tinyxml/
Feb 9, 2012 at 8:59pm
I have to write a program ...

If this is a work assignment, I'd definititely consider TinyXML.

Or is it an exercise in string parsing for a course of some kind? If so, some kind of the indication of the level would help us to pitch our responses better.

Andy
Last edited on Feb 9, 2012 at 8:59pm
Feb 10, 2012 at 4:36am
Hi Andy and Pravesh

Thanks for your reply but I have to use RapidXml.
Can you suggest me some way to do this using rapidxml.
Feb 11, 2012 at 10:21am
I don't know anything about RapidXML, but its manual looks resonable.
http://rapidxml.sourceforge.net/manual.html

Don't these examples provide the info you need??

By the way, while I see it mentions Visual C++ 2003 and newer, it not not mention Visual C++ 6.0. So you might hit some language compatibility issues.

Do you absolutely have to use VC++6.0??

Andy


Feb 13, 2012 at 3:55am
Hi Andy,

I have to use VC++6.0 only.
I had already referred this manual but it is also not solving my problem.

Thanks
Preeti
Feb 18, 2012 at 10:10pm
If you have a specific problem, and can post the key details, then someone might be able to help you. So far you've not presented enough info.
Topic archived. No new replies allowed.