Boris Kolpackov wrote:
The only drawback of decoupling validation from parsing is the potential
hit in performance. Have you done any benchmarks on this code to compare
it to Xerces-C++ SAX with schema validation enabled?

I haven't done any benchmarking on it - but it would be slightly unfair since my implementation had to do things like re-create the XMLElementDecl and XMLAttr objects, where as an implementation of XML Schema validation using the XMLDocumentHanlder interface wouldn't need to do that.

I can't imagine it would actually be significantly slower after decoupling, but it would be significantly more maintainable.

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

Reply via email to