Hi,

dennis luehring <dl.so...@gmx.net> 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.

Boris
 
-- 
Boris Kolpackov, Code Synthesis        http://codesynthesis.com/~boris/blog
Compiler-based ORM system for C++      http://codesynthesis.com/products/odb
Open-source XML data binding for C++   http://codesynthesis.com/products/xsd
XML data binding for embedded systems  http://codesynthesis.com/products/xsde

Reply via email to