Subject: | Error not helpful: element `{http://www.opengis.net/kml/2.2}Document' not processed |
element `{http://www.opengis.net/kml/2.2}Document' not processed trace:
using preparsed XML node <{http://www.opengis.net/kml/2.2}kml>
error: element `{http://www.opengis.net/kml/2.2}Document' not processed
at {http://www.opengis.net/kml/2.2}kml
at /opt/local/lib/perl5/XML/Compile/Translate/Reader.pm line 608
XML::Compile::Translate::Reader::__ANON__(XML::Compile::Iterator=HASH(0x256eb48)) at /opt/local/lib/perl5/XML/Compile/Translate/Reader.pm line 497
XML::Compile::Translate::Reader::__ANON__(XML::Compile::Iterator=HASH(0x256eb48)) at /opt/local/lib/perl5/XML/Compile/Translate/Reader.pm line 92
XML::Compile::Translate::Reader::__ANON__(XML::LibXML::Element=SCALAR(0x1705378)) at /opt/local/lib/perl5/Geo/KML.pm line 187
Geo::KML::from("Geo::KML", "CustData.kml") at ./kml-decode.pl line 30
Even with debugs turned on, this error message appears to be fairly
unhelpful in debugging problems with the XML. The issue has nothing to
do with Document, but with something within the xAL XML in
Document->Placemark->xal:AddressDetails. The lack of detail in the
error message has forced me to resort to trial and error (removing code
piece by piece).
I would patch it myself, but I'm not sure exactly where the problem lies
with the reporting routines. It seems like Reader should error sooner,
when it encounters the problem tag.