I will be receiving XML messages from a third party (e.g. an InputStream). In my application, I do all my work on a DOM4J Document object. I would like have the option for an implementor to perform XSLT and / or XML Schema validation on the incoming XML. Are there some best practices for doing this?
For example, initially I was thinking that I would first make a DOM4J Document object (org.dom4j.tree.DefaultDocument), translate the XML (as shown in the FAQ), and then validate with the MultiSchema Validation package (MSV / JARV). However, the JARV Verifier.verify() method requires an org.w3c.dom.Node instead of a preferred org.dom4j.Node. The JARVDemo examples in the samples folder seem to do the validation during either reading or writing the Document. Will I need to generate the Document object twice? (Once for validation - once for my use)
Thanks,
Al Herod