[jdom-interest] Need for a SAXBuilder.build(String XMLString) method?

Trimmer, Todd todd.trimmer at trizetto.com
Mon Apr 16 09:08:26 PDT 2001


I was converting strings to XML Elements and vice versa with such frequency
I wrote a XSerializer class to aid me. It doesn't do much beyond wrapping
around org.jdom.input.SAXBuilder and org.jdom.output.XMLOutputter.

You can roll your own in just a few hours. I extended it to
serialize/objectify not only documents, but elements, and lists of elements.

Additional methods were later added to extract strings from Element data,
like getInnerXML(), which just returns the tagName and the attribute list
between angle brackets.

Happy Coding!




More information about the jdom-interest mailing list