Correctly parse empty elements in OSM datasource.
This commit is contained in:
parent
bd9fe739e5
commit
94634d4691
1 changed files with 5 additions and 0 deletions
|
@ -103,6 +103,11 @@ void osmparser::startElement(xmlTextReaderPtr reader, const xmlChar *name)
|
||||||
xmlFree(xk);
|
xmlFree(xk);
|
||||||
xmlFree(xv);
|
xmlFree(xv);
|
||||||
}
|
}
|
||||||
|
if (xmlTextReaderIsEmptyElement(reader))
|
||||||
|
{
|
||||||
|
// Fake endElement for empty nodes
|
||||||
|
endElement(name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void osmparser::endElement(const xmlChar* name)
|
void osmparser::endElement(const xmlChar* name)
|
||||||
|
|
Loading…
Add table
Reference in a new issue