I have been reading for hours and hours now and have got absolutley nowhere! ...my C programming skills are more than adequate, but I don't really know much C++ structure, I have done plenty of Java so understand OO!
I want to parse an XML document containing data and be able to manipulate / display the data from the XML document, there are no fancy GUI's, just a command prompt! ...I have downloaded Tiny XML, ran and read the test program supplied, but really don't have a clue how I would open an XML file for parsing as the XML file they have supplied is just a pointer to a char array containing chars rather than opening an XML file!
does anyone have any simple code that will simply open the XML file and store the contents of the file into memory?
here is my XML file...
basically, I need some sort of data structure that i can use to hold the airport names and codes!Code:<codes> <airport code="HNL" name="Honolulu"/> <airport code="JFK" name="New York"/> <airport code="LAX" name="Los Angeles"/> <airport code="LGW" name="London Gatwick"/> <airport code="LHR" name="London Heathrow"/> <airport code="MIA" name="Miami"/> <airport code="OKL" name="Orlando"/> <airport code="SFO" name="San Fransisco"/> </codes>