cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies" <>
Subject Fun with XML schema validation
Date Fri, 21 Sep 2007 00:29:32 GMT
I'm hoping that the following makes some sense to someone reading this.

I acquire a schema for Aegis files via:

                            newSchema(new StreamSource(is));

I stick this into a DocumentBuilderFactory.

I use a builder from that factory to read the file.


[main] ERROR org.apache.cxf.aegis.type.XMLTypeCreator  - Error loading
file /org/apache/cxf/aegis/type/map/fortest/MapTest.aegis.xml
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of
element 'mappings'.

Then I validate the very same file with the very same schema from inside

No errors.

Anyone else ever used this stuff?

View raw message