Hey Alby, Alberto Massari wrote:
I have been toying with the idea of making the validator work as an advanced handler, so that the 4 scanners become 1 scanner + schema validator + dtd validator plugged on demand. Does anybody have an idea if the validator code can be (easily) moved out of the scanner?
I've written a stand-alone SAX-like schema validator for XQilla that uses the Xerces-C schema validation code. It was hard work, since the schema validator is tied quite closely to the scanner. You can see the code here:
http://xqilla.cvs.sourceforge.net/xqilla/xqilla/include/xqilla/schema/SchemaValidatorFilter.hpp?view=markup http://xqilla.cvs.sourceforge.net/xqilla/xqilla/src/schema/SchemaValidatorFilter.cpp?view=markup If you want to attempt the work, I'd be happy to help out in any way I can. John -- John Snelson, Oracle Corporation http://snelson.org.uk/john Berkeley DB XML: http://www.oracle.com/database/berkeley-db/xml XQilla: http://xqilla.sourceforge.net
