My kml is the following:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1" xmlns:atom="http://
www.w3.org/2005/Atom" xmlns:xal="urn:oasis:names:tc:ciq:xsdschema:xAL:
2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://earth.google.com/kml/2.1
http://code.google.com/apis/kml/schema/kml21.xsd">
<Placemark>
<name>The Pentagon</name>
<Polygon>
<extrude>1</extrude>
<altitudeMode>relativeToGround</altitudeMode>
<outerBoundaryIs>
<LinearRing>
<coordinates>
-77.05788457660967,38.87253259892824,100
-77.05465973756702,38.87291016281703,100
-77.05315536854791,38.87053267794386,100
-77.05552622493516,38.868757801256,100
-77.05844056290393,38.86996206506943,100
-77.05788457660967,38.87253259892824,100
</coordinates>
</LinearRing>
</outerBoundaryIs>
<innerBoundaryIs>
<LinearRing>
<coordinates>
-77.05668055019126,38.87154239798456,100
-77.05542625960818,38.87167890344077,100
-77.05485125901024,38.87076535397792,100
-77.05577677433152,38.87008686581446,100
-77.05691162017543,38.87054446963351,100
-77.05668055019126,38.87154239798456,100
</coordinates>
</LinearRing>
</innerBoundaryIs>
</Polygon>
</Placemark>
</kml>
Do you have any idea how i could get it valid against the kml
schema...
Many thanks
Sylvain
As far as I can tell, there's nothing wrong. Occasionally I've had
trouble with XML Spy in the past, but that's usually be false
negatives. This is a bug, which I'm sure the Altova people would be
happy to know about. I just replicated it on an evaluation version,
and got the same error but for kml:Placemark, which is clearly not
marked as abstract. I validated it with Oxygen, as well as eyeballing
it, and it is fine. If you really want to save money on an XML editor,
here's a tutorial on using JEdit to validate:
http://earth.google.com/outreach/tutorial_jedit.html
ManoM
On Oct 11, 7:55 am, springrider wrote:
> gd afternoon
> I played with a basic kml using XML Spy.The XML is well formed and I
> would like to validate it against the kml schema version 2.1 but i
> always get the same error: "The abstract attribute of element
> kml:Feature must be set to false".
>
> My kml is the following:
> <?xml version="1.0" encoding="UTF-8"?>
> <kml xmlns="http://earth.google.com/kml/2.1" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:xal="urn:oasis:names:tc:ciq:xsdschema:xAL:
> 2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://earth.google.com/kml/2.1http://code.google.com/apis/kml/schema/kml21.xsd">
Perfect, this is exactly what i needed. I highly recommend JEdit for
manipulating your KMLs and check the consistency of them.
I will investigate again for XMLSpy.
Thanks
Sylvain
On 11 oct, 18:57, ManoM wrote:
> Hi Sylvain,
>
> As far as I can tell, there's nothing wrong. Occasionally I've had
> trouble with XML Spy in the past, but that's usually be false
> negatives. This is a bug, which I'm sure the Altova people would be
> happy to know about. I just replicated it on an evaluation version,
> and got the same error but for kml:Placemark, which is clearly not
> marked as abstract. I validated it with Oxygen, as well as eyeballing
> it, and it is fine. If you really want to save money on an XML editor,
> here's a tutorial on using JEdit to validate:http://earth.google.com/outreach/tutorial_jedit.html
>
> ManoM
>
> On Oct 11, 7:55 am, springrider wrote:
>
> > gd afternoon
> > I played with a basic kml using XML Spy.The XML is well formed and I
> > would like to validate it against the kml schema version 2.1 but i
> > always get the same error: "The abstract attribute of element
> > kml:Feature must be set to false".
>
> > My kml is the following:
> > <?xml version="1.0" encoding="UTF-8"?>
> > <kml xmlns="http://earth.google.com/kml/2.1" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:xal="urn:oasis:names:tc:ciq:xsdschema:xAL:
> > 2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="http://earth.google.com/kml/2.1http://code.google.com/apis/kml/schema...">