Ajith K wrote:
> Hi,
>
> I have a query regarding JAXB.
> Our project needs to generate XML from a defined java object. With
> JAXB is it possible to generate without having the XSD for the XML to
> be generated and is it possible to avoid the object class and
> interface generation.
In JAXB 2.0
- you can start with Java code, annotate your code with JAXB annotations,
and generate the XML. Schema generation is not necessary.
The annotations are defined in javax.xml.bind.annotation and its sub
package
javax.xml.bind.annotation.adpaters. Also, defaulting rules apply if there
are no annotations.
- if you start with an xsd, value classes are generated by default.
Interface/impl classes
can (like in JAXB 1.0) be generated using a customization.
Sekhar
>
>
> Your inputs will be greatly appreciated.
>
> Thanks and Regards,
> Ajith K
>