#### Archived

This topic is now archived and is closed to further replies.

This topic is 5230 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hello, I have a simulator.txt.xml file at which I need to be able to read the commands from, like ''north''''east'' and etc., I''m using a console application at VS6 c++ which has to read those commands out of the txt.xml file and I dont know anything about COM nor about XML. I''m not leaning COM now and have no time to do so , I only need 2 functions (( Can you please help me up with this?? tell me what do I need to include/do or post fuctions so I can be able to 1) read the commands 2) reset the file to the first command I"m clue less about this and soon out of time ((( Thanks for to anyone who can help me!!
<?xml version="1.0" encoding="ISO-8859-1"?>
<simulator>
<command>North</command>
<command>North</command>
<command>East</command>
<command>North</command>
<command>East</command>
<command>East</command>
<command>North</command>
<command>North</command>
<command>North</command>
<command>West</command>
</simulator>


##### Share on other sites
you could use TinyXML to parse the files for you and give you the strings from it.

##### Share on other sites
The 3 best choices in XML for VS are MSXML (but you said you didn''t want to deal with COM for now), TinyXML (good, simple, but limited -- should work for you though), and Xerces (good, full featured, but big).

The best choice of these for you is probably TinyXML, but you will have to learn a little XML.

1. 1
Rutin
19
2. 2
3. 3
JoeJ
15
4. 4
5. 5

• 18
• 19
• 10
• 13
• 17
• ### Forum Statistics

• Total Topics
631694
• Total Posts
3001751
×