Correctly parse empty elements in OSM datasource.

This commit is contained in:
Hermann Kraus 2012-03-20 23:03:01 +01:00
parent bd9fe739e5
commit 94634d4691

View file

@ -103,6 +103,11 @@ void osmparser::startElement(xmlTextReaderPtr reader, const xmlChar *name)
xmlFree(xk);
xmlFree(xv);
}
if (xmlTextReaderIsEmptyElement(reader))
{
// Fake endElement for empty nodes
endElement(name);
}
}
void osmparser::endElement(const xmlChar* name)