Hi all,
I have created a flightplan from an external application and stored in xml
format like
<fpl>
<wpt lat="10.12345" lon="77.56789">
<name>ABCD</name>
</wpt>
<wpt lat = "12.2345" lon = " 76.87654">
<name>WXYZ</name>
</wpt>
.........
</fpl>
I am having trouble reading the lat & lon of wpt node.
I have used SGPropertyNode to read a node and able to succesfully read the
<name> value.But i am not able to read lat & lon value
A Sample code is as below:
SGPropertyNode fpRead;
fgLoadProps("test.xml",&fpRead);
SGPropertyNode *plan = fpRead.getNode("fpl");
SGPropertyNode *fpwpt = plan->getNode("wpt");
printf("Name = %s", fpwpt->getStringValue("name");
And this correctly prints ABCD. However when i try to get lat or lon using
getStringValue or getDoubleValue i don't get any output.
The programs complie properly without error.
I am using FG2.0.0 with simgear2.0.0 & plib1.8.5 on a linux machine.
Plz suggest me how to read lat & lon values from the xml file.
Raghav
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel