RE: Forcing validation without changing XML file

2007-04-24 Thread Michael Glavassevich
You can't put your SAX filter ahead of anything inside of the XMLReader. The validator I meant was a JAXP Validator [1] or ValidatorHandler [2] not the integrated one in the parser. XMLReader -> XMLFilter (your filter) -> Validator / ValidatorHandler Thanks. [1] http://xerces.apache.org/xerce

RE: Forcing validation without changing XML file

2007-04-24 Thread Vila Christophe
My mistake ! It does not work (I forgot to remove the xmlns attribute of the root element)... According to the following stack trace, it appears that validation against schema is performed before entering in the filter startElement method... org.xml.sax.SAXParseException: cvc-elt.1: Cannot find t

RE: Forcing validation without changing XML file

2007-04-24 Thread Vila Christophe
Very good idea ! I have just tested it and it works well. Thank you ! -Original Message- From: Michael Glavassevich [mailto:[EMAIL PROTECTED] Sent: lundi 23 avril 2007 20:42 To: j-users@xerces.apache.org Cc: Vila Christophe Subject: Re: Forcing validation without changing XML file You co