Java - Convert String to XML - Mkyong.com

This article shows how to convert a String to an XML document and an XML document back to a String in Java, using DOM parser and JDOM2 parser.