pihu
pihu

Reputation: 93

How to use JAXB to generate a xml from a bean

I wamt to generate xml from java class using JAXB from a bean class,please let me know which are different approaches for the same. I have tried one from vogella website,but i want to know more about the other apporaches and where can i find JAXB API's?

Thanks

Upvotes: 1

Views: 2172

Answers (1)

bdoughan
bdoughan

Reputation: 149007

The JAXB APIs are included in Java SE 6 as well as an implementation. Other implementations are available: MOXy, Metro, JaxMe and can be downloaded separately

The following example will help get you going:

I'm the EclipseLink JAXB (MOXy) lead and a member of the JAXB 2 (JSR-222) expert group. My blog contains many examples demonstrating different aspects of JAXB.

Upvotes: 2

Related Questions