> I am wondering if dom4j is useable for the type of > situation that I described above, to parse an incoming > xml message in a web service and to validate that xml > against an xsd schema file. How comparable is it to > JAXB in terms of performance?
This totally depends on what you want to do with the information. [1] If you want to validate the information against a set of schemas and check some simple (or maybe even quite complex) information 'on the fly', you could try and use SAX. (this would be lightning fast) [2] If you want to validate the information and don't mind the information being presented as a simple Tree and you want to interrogate the information using XPath, the best solution would be to use dom4j or DOM. [3] If you want to validate the information and want the information to be presented in specific objects because of complex interactions between your application and the objects, JAXB is the only solution. (I would recommend JAXB 2.0) To parse the XML into objects, I expect dom4j to be slightly faster than JAXB but you need to take into account the performance of processing these objects. Hope this helped. Regards, Edwin -- http://www.edankert.com/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user