> I'm wondering how much work it would be to write a dom4j Verifier which > navigates the dom4j model using the dom4j API and the MSV API as an > alternative to sending SAX events in. Being able to verify a fragment of a > document might be really handy too; say a dom4j Element, when validating > part of a SOAP message for example.
It's basically writing a class similar to com.sun.msv.verifier.Verifier. Visiting dom4j model while calling appropriate methods on the Acceptor interface. But I don't know if it contributes a higher performance or not, as lot of the work is done below the Acceptor interface. Maybe it's not worth the trouble of maintaining two similar classes. Partial validation (validating a subtree) for W3C DOM is already possible by using the external interface (JARV interface.) Adding the same level of support for the above dom4j verifier is probably a snap. regards, ---------------------- K.Kawaguchi E-Mail: [EMAIL PROTECTED] _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user
