Am 13.06.2014 10:47, schrieb Boris Kolpackov:
Hi,
dennis luehring <[email protected]> writes:
is there any way to teach xerces to ignore these empty or
non-existen namespaces in the xml-files like some sort of - if there
is nothing or some empty namespace use this one instead?
You can take a look at parseWithContext() though I doubt it will
work. What I would do is parse the XML without validation (e.g.,
into DOM or using SAX) and fix it up. Then re-parse with validation.
Efficiency-wise, this can range from saving the fixed-up XML to a
file to saving to an in-memory buffer, to streaming the data
directly from the serializer to parser.
im fixing the xmls - seems to be fast enough, thx