I have been using Jibx since 2 years, which is basically a XML to JAVA and vice-versa Conversion Tool.
It's very simple to use just like the POJOs in our Java Code.
Instructions to use:
Method 1:
We can generate Binding file (mapping file), Schema from Code itself using BindGen tool of Jibx. Otherwise,
We can generate Code and Binding file (mapping file) from schema (XSD) using CodeGen tool. Otherwise,
It's very simple to use just like the POJOs in our Java Code.
Instructions to use:
Method 1:
We can generate Binding file (mapping file), Schema from Code itself using BindGen tool of Jibx. Otherwise,
- Write your POJOs you want to convert to XML.
- Write a mapping file(xml) which tells what fields in that POJO exactly mapped to the XML tags (this is well described in Jibx )
- Build the mapping file, then the POJO is ready to be used, to convert into XML.
We can generate Code and Binding file (mapping file) from schema (XSD) using CodeGen tool. Otherwise,
- Write your POJOs you want to convert to XML.
- Write a mapping file(xml) which tells what fields in that POJO exactly mapped to the XML tags (this is well described in Jibx )
- Build the mapping file, then the POJO is ready to be used, to convert into XML and vice-versa.
No comments:
Post a Comment