This week i开发者_高级运维 was asked to change the old msgs communication system to XML msgs as i understood i have to make a xml schema that need have the stuct of the data to use to validate xml files.
The problem is i don't have any idea how. Can anyone show a good guide how to do this process of creating the schema and using it to validate the xmls in java ?
thx for ur time
Well, you could use a web service. Apache CXF (cxf.apache.org) supports JMS and soap transports, and there are plenty of tutorials on the site.
If for some reason you must do this from scratch, you might want to look at xmlbeans. Tutorials there will show you a schema and how to generate java code from it.
精彩评论