简体   繁体   中英

Generate XML with java classes inside jar file in MyEclipse

I think this questions were asked a number of times, but i could not seems to find what I wanted. I would like to generate XML with existing java classes in the jar file. Some people have mentioned using xStream and JAXB, besides this 2, any other ways to achieve what I wanted? Could someone please help? Thanks in advance!

You can use the JDOM library in Java. Define your tags as Element objects, document your elements with Document Class, and build your xml file with SAXBuilder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM