not well-formed(invalid token) - reasons?

323 views
Skip to first unread message

clarred

unread,
Apr 23, 2007, 11:38:54 AM4/23/07
to KML Support - Advanced Support
I send the same update throw a networklink over and over and then
suddenly I get an error like this (this is not the same error as I
wrote about in an previous thread):

Fetch of NetworkLink "Dynamic" failed ...

Parse error at line 1, column 40320:

not well-formed(invalid token)

I've checked that the document is well-formed and validated it against
the KML 2.1 XML Schema.

Could this occur anyway somehow?

Document below:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<NetworkLinkControl xmlns="">
<cookie>geAdapterCookie=-31f2ef6%3A111ffc130bc
%3A-7ffa</cookie>
<Update>
<targetHref> http://valhalla.xxxxx.com:80</targetHref>
<Change>
<Placemark
targetId="HLAobjectRoot.BaseEntity.PhysicalEntity.Platform.GroundVehicle114">
<name>VW-2</name>
<description><![CDATA[HLA Name
=
HLAobjectRoot.BaseEntity.PhysicalEntity.Platform.GroundVehicle114<br/
>EntityType = 1.1.78.27.3.0.0<br/>Latitude = 52,1165 degrees<br/
>Longitude = 11,6615 degrees<br/>Altitude = 0,00 m<br/>Velocity =

14,00 m/s<br/>]]></description>
<styleUrl>
style-1.1.78.27.3.0.0-3</styleUrl>
<Point>
<extrude>1</extrude>
<tessellate>1</
tessellate>

<altitudeMode>clampToGround</altitudeMode>

<coordinates>11.661473,52.116495,3.1387433e-05 </coordinates>
</Point>
</Placemark>
</Change>
<Change>
<Placemark
targetId="HLAobjectRoot.BaseEntity.PhysicalEntity.Platform.GroundVehicle114velocity">
<styleUrl>#velocityColor</
styleUrl>
<LineString>
<tessellate>1</
tessellate>

<altitudeMode>clampToGround</altitudeMode>
<coordinates>
11.661473,52.116495,3.1387433e-05
11.662032,52.116341,0.00016987417</coordinates>
</LineString>
</Placemark>
</Change>
<Change>
<Placemark
targetId="HLAobjectRoot.BaseEntity.PhysicalEntity.Platform.GroundVehicle114heading
">
<styleUrl>#headingColor</
styleUrl>
<LineString>
<tessellate>1</
tessellate>

<altitudeMode>clampToGround</altitudeMode>

<coordinates>11.661473,52.116495,3.1387433e-05 11.670798 ,
52.113922,0.038379564</coordinates>
</LineString>
</Placemark>
</Change>
<Change>
<Placemark
targetId="HLAobjectRoot.BaseEntity.PhysicalEntity.Platform.GroundVehicle114roll">
<styleUrl>#rollColor</
styleUrl>
<LineString>
<tessellate>1</
tessellate>

<altitudeMode>clampToGround</altitudeMode>
<coordinates>
11.661473,52.116495,3.1387433e-05
11.657295,52.110754,0.038367906</coordinates>
</LineString>
</Placemark>
</Change>
<Change>
<Placemark
targetId="HLAobjectRoot.BaseEntity.PhysicalEntity.Platform.GroundVehicle114track
">
<styleUrl>#trackStyle</
styleUrl>
<LineString>
<extrude>1</extrude>
<tessellate>1</
tessellate>

<altitudeMode>clampToGround</altitudeMode>

<coordinates>11.656349 ,52.118225,3.1405129e-05
11.656349,52.118225,3.1405129e-05 11.656349,52.118225,3.1405129e-05
11.656417,52.118106,3.1402335e-05 11.656417,52.118106,3.1402335e-05
11.656417,52.118106,3.1402335e-05 11.656486,52.117984,3.1402335e-05
11.656486,52.117984,3.1402335e-05 11.656671,52.117929,3.1401403e-05
11.656671,52.117929,3.1401403e-05 11.656671,52.117929,3.1401403e-05
11.656856,52.117875,3.1401403e-05 11.656856,52.117875,3.1401403e-05
11.656856,52.117875 ,3.1401403e-05 11.657041,52.117820,3.1399541e-05
11.657041,52.117820,3.1399541e-05 11.657041,52.117820,3.1399541e-05
11.657225,52.117765,3.1400472e-05 11.657225,52.117765,3.1400472e-05
11.657225,52.117765,3.1400472e-05 11.657408 ,52.117708,3.1399541e-05
11.657408,52.117708,3.1399541e-05 11.657408,52.117708,3.1399541e-05
11.657590,52.117650,3.1395815e-05 11.657590,52.117650,3.1395815e-05
11.657590,52.117650,3.1395815e-05 11.657772,52.117592,3.1396747e-05
11.657772,52.117592,3.1396747e-05 11.657772,52.117592,3.1396747e-05
11.657955,52.117535,3.1394884e-05 11.657955,52.117535,3.1394884e-05
11.657955,52.117535,3.1394884e-05 11.658137,52.117477,3.1396747e-05
11.658137,52.117477 ,3.1396747e-05 11.658137,52.117477,3.1396747e-05
11.658319,52.117419,3.1395815e-05 11.658319,52.117419,3.1395815e-05
11.658319,52.117419,3.1395815e-05 11.658502,52.117362,3.1393953e-05
11.658502,52.117362,3.1393953e-05 11.658502 ,52.117362,3.1393953e-05
11.658684,52.117304,3.1394884e-05 11.658684,52.117304,3.1394884e-05
11.658684,52.117304,3.1394884e-05 11.658872,52.117245,3.1393021e-05
11.658872,52.117245,3.1393021e-05 11.658872,52.117245,3.1393021e-05
11.659051,52.117188,3.1392090e-05 11.659051,52.117188,3.1392090e-05
11.659051,52.117188,3.1392090e-05 11.659237,52.117130,3.1393953e-05
11.659237,52.117130,3.1393953e-05 11.659237,52.117130,3.1393953e-05
11.659422,52.117071 ,3.1393021e-05 11.659422,52.117071,3.1393021e-05
11.659422,52.117071,3.1393021e-05 11.659604,52.117013,3.1390227e-05
11.659604,52.117013,3.1390227e-05 11.659604,52.117013,3.1390227e-05
11.659789,52.116959,3.1390227e-05 11.659789 ,52.116959,3.1390227e-05
11.659789,52.116959,3.1390227e-05 11.659976,52.116907,3.1389296e-05
11.659976,52.116907,3.1389296e-05 11.660163,52.116856,3.1390227e-05
11.660163,52.116856,3.1390227e-05 11.660163,52.116856,3.1390227e-05
11.660350,52.116804,3.1388365e-05 11.660350,52.116804,3.1388365e-05
11.660350,52.116804,3.1388365e-05 11.660537,52.116753,3.1391159e-05
11.660537,52.116753,3.1391159e-05 11.660724,52.116701,3.1388365e-05
11.660724,52.116701 ,3.1388365e-05 11.660911,52.116650,3.1387433e-05
11.660911,52.116650,3.1387433e-05 11.660911,52.116650,3.1387433e-05
11.661098,52.116598,3.1386502e-05 11.661098,52.116598,3.1386502e-05
11.661098,52.116598,3.1386502e-05 11.661286 ,52.116547,3.1387433e-05
11.661286,52.116547,3.1387433e-05 11.661286,52.116547,3.1387433e-05
11.661473,52.116495,3.1387433e-05 11.661473,52.116495,3.1387433e-05 </
coordinates>
</LineString>
</Placemark>
</Change>
</Update>
</NetworkLinkControl>
</kml>

clarred

unread,
Apr 23, 2007, 11:45:33 AM4/23/07
to KML Support - Advanced Support
The emtpy namspace in <NetworkLinkControl xmlns=""> is removed. I
pasted an old document.

ManoM

unread,
Apr 23, 2007, 12:41:21 PM4/23/07
to KML Support - Advanced Support
What would be at column 40320? I assume you're sending the KML file as
one long file, no line breaks, which should be fine. But since that's
the error message, maybe something happened at that point?

And I doubt this is the problem, but I noticed this:
<styleUrl>style-1.1.78.27.3.0.0-3</styleUrl>
does not have a # in front of the URL.

ManoM

clarred

unread,
Apr 23, 2007, 3:40:09 PM4/23/07
to KML Support - Advanced Support
The thing is that the column differs from time to time since it is a
dynamicly generated. I've actually only checked one time, since it was
supposed to be valid, and then it was in the middle of a word. I'll
try to generate the fault again to see where it occurs this time and
post it here. Sometimes it takes hours to get the fault.

I'll also look at the <styleUrl>

Thanks,
Clarence

clarred

unread,
Apr 24, 2007, 5:01:06 AM4/24/07
to KML Support - Advanced Support
The following has happened twice now this morning. Once in a while,
which is when it goes wrong, my code seems to produce
]]>]] as CDATA ending. I can't see why in my code but anyway.

When I validate and check for well-formedness in XML Spy, it works
fine.

I guess this could be the fault, right? Google Earth marks the error
within the second pair of brackets. ]]>] HERE ]>

/Clarence


<Change>
<Placemark
targetId="HLAobjectRoot.BaseEntity.PhysicalEntity.Platform.Aircraft964">
<name>B-12</name>


<description><![CDATA[HLA Name =

HLAobjectRoot.BaseEntity.PhysicalEntity.Platform.Aircraft964<br/
>EntityType = 1.2.0.3.0.0.0<br/>Latitude = 28,7026 degrees<br/
>Longitude = -80,3435 degrees<br/>Altitude = 1 500,00 m<br/>Velocity =
250,00 m/s<br/>]]>]]></description>
<styleUrl>style-1.2.0.3.0.0.0-1</styleUrl>
<Point>
<extrude>1</extrude>
<altitudeMode>absolute</altitudeMode>
<coordinates>-80.343491,28.702584,1500.0002</coordinates>
</Point>
</Placemark>
</Change>

clarred

unread,
Apr 25, 2007, 2:44:06 AM4/25/07
to KML Support - Advanced Support
It turned out to be a concurrency issue, but I still don't understand
why the double ]]> could pass well-formedness and validation in XML
SPY.

Does anyone know or have a guess why this can be?

/Clarence

> ...
>
> läs mer »

Reply all
Reply to author
Forward
0 new messages