One reason could be that you plugged a HandlerBase as ErrorHandler, and
that will throw an exception only in presence of a fatal error
(validation errors as hence ignored).
If you want to see them, derive your own class from it and handle the
error() method.
Furthermore, in order to use schema, you should invoke setDoSchema(true)
Finally, change the setExternalSchemaLocation to be
setExternalNoNamespaceSchemaLocation (or, if schema.xsd is using a
targetNamespace, change the argument of setExternalSchemaLocation to be
"uri schema.xsd")
Alberto
evangeline wrote:
Sorry, I should have been more specific...it doesn't work because it always
returns true, even if the xml is not valid.
Any ideas why that happens ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]