开发者

Schemas, Xml and java

开发者 https://www.devze.com 2023-02-20 16:00 出处:网络
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 fil

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消