Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find Java EE 6 XML Libraries

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?

like image 345
Webnet Avatar asked Feb 03 '26 12:02

Webnet


1 Answers

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

like image 67
GeertPt Avatar answered Feb 06 '26 06:02

GeertPt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!