Java News Brief (JNB): Writing API for XML (WAX)
I've fallen behind on reporting OCI's Java News Brief (JNB) articles, again, lately. But this month's article made the job so easy: Mark Volkmann wrote it. It's about his open source Writing API for XML library. And you can watch it:
I hope I never have to write XML by hand, but if I do need to, WAX sounds like a pretty nifty library.
Re: Java News Brief (JNB): Writing API for XML (WAX)
Hi,
thanks for this post!
Regards,
Peter.
PS: take a look at xstream if you want an even simpler approach. like the author said, too: "there are even simpler approaches if you are serializing Java objects into XML and will later want to deserialize the XML back to Java objects. My favorite of these is XStream. Another option is JAXB."
Regards,
Peter.
PS: take a look at xstream if you want an even simpler approach. like the author said, too: "there are even simpler approaches if you are serializing Java objects into XML and will later want to deserialize the XML back to Java objects. My favorite of these is XStream. Another option is JAXB."
Re: Java News Brief (JNB): Writing API for XML (WAX)
XStream is great IF the XML elements you want to write correspond one-to-one with the hierarchy of your Java objects. That's not always the case. When it's not, WAX is the simpler approach. WAX is also able to write larger XML documents without running out of memory due to its streaming approach.