Hi i had been using XercersDomParser for parsing the XML file in C++
I am not familiar with XML. In the follwing XML file
http://localhost:8080/source/schemas/locomotive.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://localhost:8080/source/schemas/locomotive.xsd http://localhost:8080/source/schemas/locomotive.xsd">
9001
UnReg
2008-07-13T13:37:33
-32.86693333
151.75333333
-1
-1
178500
85
0
0
http://localhost:8080/source/schemas/locomotive.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://localhost:8080/source/schemas/locomotive.xsd http://localhost:8080/source/schemas/locomotive.xsd">
9002
UnReg
2008-07-13T23:59:56
-32.61888333
151.14988333
-1
-1
239000
87
0
0
Eventhough i can traverse through XML file through
DOMTreeWalker but can't get idea to store Values in a strucured
the structure look like this
typedef struct
{
Loco_Id LocoId ;
string /*DateTime*/ SampleTime ;
float Lattitude;
float Longitude;
float Speed ;
float Direction;
int KmPostPosition;
int TrackNumber;
int Alarms;
int Failures ;
}LocoDetails
Can any one tell how to access the value from the XML file and store to a list
Furqan ZafarPosted Sep 2, 2009, 3:05 PM