How to read a XML file

May 21, 2009 at 6:43am
Hi all,

I want to read a XML file and insert the values into the map. Before this i've never written any program for reading XML files.

this is my xml file:

<STUcount level="3" />
<STUROWS count="3" />
<STUServer name="STU" IP="localhost" port="69" />
<Map>
<STU ID="12">
<NAME>Xxxx</NAME>
<STD>12</STD>
</STU>
<STU ID="13">
<NAME>yyyy</NAME>
<STD>10</STD>
</STU>
</Map>

I want to read that XML file and store it into the local strings and maps.

Can anyone help me in how to do this? also plase provide some useful links to learn how to program for reading and writing XML through C++ in unix.

Thanks in Advance..
May 21, 2009 at 7:17am
you can use xml library, for example:
http://www.xmlsoft.org/
May 22, 2009 at 5:39pm
or Xerces.
May 22, 2009 at 7:01pm
closed account (S6k9GNh0)
Or TinyXML++ is also popular.
Jun 3, 2009 at 11:48am
I know that Oracle (if you use that db) has one as well: 'Oracle Parser for C'.
Jun 3, 2009 at 3:48pm
closed account (S6k9GNh0)
I know more Oracle Parsers than I know types of cheese.
Topic archived. No new replies allowed.