Shinya said:
Can i serialize xml to object using XML Bean?
Each record stored in Oracle database as xml type and
I want to serialize this xml to java beans so that I can easily edit
this record. XML Bean is the tool to go for it?
You can if you are referring to XMLBeans (
http://xmlbeans.apache.org).
You'll need an XML Schema file in order to have XMLBeans generate the
required Java classes. XMLBeans comes with a tool (inst2xsd) that will
enable you to turn an xml file into a schema if you don't have a schema
file already.
XMLBeans is my favorite java to xml binding tool. I find it very clean
to work with the generate classes and methods. With it you always deal
with the objects that are meaningful and this keeps your code clean and
easier to read and maintain in my opinion. One of the things I dislike
about JAXB is that is makes you deal with objects outside those related
to your schema types.
John