yeah, this seems to work, but does anybody know if there is a better way?
Bill Burke wrote:
I'm looking at how we do parsing and looking at
XmlFileLoader.LocalErrorHandler.
It looks like errors are ignored if the schema wasn't resolved. Is this
the way to do it?
Bill Burke wrote:
How do y
On Mon, 2006-03-20 at 13:38 -0500, Bill Burke wrote:
> Tell me something I don't already know. I want validation if there is a
> schema specified, no validation if there is not.
>
And no default attributes, etc.
> Adrian Brock wrote:
> > The element declaration is required (from your error mes
Tell me something I don't already know. I want validation if there is a
schema specified, no validation if there is not.
Adrian Brock wrote:
The element declaration is required (from your error message)
http://www.w3.org/TR/xmlschema-1/#cvc-elt
and validation is required for minimal conforman
The element declaration is required (from your error message)
http://www.w3.org/TR/xmlschema-1/#cvc-elt
and validation is required for minimal conformance:
http://www.w3.org/TR/xmlschema-1/#concepts-conformance
On Mon, 2006-03-20 at 13:20 -0500, Bill Burke wrote:
> How do you set up xml parsing t
I'm looking at how we do parsing and looking at
XmlFileLoader.LocalErrorHandler.
It looks like errors are ignored if the schema wasn't resolved. Is this
the way to do it?
Bill Burke wrote:
How do you set up xml parsing to not validate if there is no schema
specified in the XML?
Caused by:
How do you set up xml parsing to not validate if there is no schema
specified in the XML?
Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the
declaration of element 'persistence'.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)