I'm learning Java EE 6 & Jax-RS (haven't started anything about Jax-RS yet) to build an xml api for my work. I have my java controllers setup and I'm looking now to use my models to generate XML output. I can't seem to find any XML libraries by searching Google. Can someone help point me in the right direction?
If you use JAX-RS, you can use @Produces("application/xml"), then you will have an xml api. JAX-RS works by default with JAXB.
See http://jersey.java.net/nonav/documentation/latest/jax-rs.html#d4e318
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With