R
Ramon F Herrera
I extracted the file 'current.gpx' from my Garmin nüvi GPS to take a
look at its contents. See its first lines below.
NetBeans and Eclipse have no problem with it, but when I try to
perform the "View Data Grid" operation in Visual Studio, I get this
message:
"This XML document is not well formed. It contains the following
error: There are multiple root elements".
These are the lines in which it is choking, apparently on
"ele" (elevation)
<wpt lat ="10.036995" lon ="-69.242541">
<ele>423.583374</ele>
<name>A Cabudare Via</name>
<sym>Flag, Blue</sym>
</wpt>
Perhaps the word 'ele' is reserved for element?
-Ramon
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gpx xmlns="http://www.topografix.com/GPX/1/1"
xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3"
creator="nüvi 660" version="1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1
http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3
http://www.garmin.com/xmlschemas/GpxExtensions/v3/GpxExtensionsv3.xsd">
<metadata>
<link href="http://www.garmin.com">
<text>Garmin International</text>
</link>
<time>2007-12-01T22:59:07Z</time>
</metadata>
[...]
look at its contents. See its first lines below.
NetBeans and Eclipse have no problem with it, but when I try to
perform the "View Data Grid" operation in Visual Studio, I get this
message:
"This XML document is not well formed. It contains the following
error: There are multiple root elements".
These are the lines in which it is choking, apparently on
"ele" (elevation)
<wpt lat ="10.036995" lon ="-69.242541">
<ele>423.583374</ele>
<name>A Cabudare Via</name>
<sym>Flag, Blue</sym>
</wpt>
Perhaps the word 'ele' is reserved for element?
-Ramon
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gpx xmlns="http://www.topografix.com/GPX/1/1"
xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3"
creator="nüvi 660" version="1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1
http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3
http://www.garmin.com/xmlschemas/GpxExtensions/v3/GpxExtensionsv3.xsd">
<metadata>
<link href="http://www.garmin.com">
<text>Garmin International</text>
</link>
<time>2007-12-01T22:59:07Z</time>
</metadata>
[...]