In Java how can you convert a String that represents a fragment of XML for insertion into an XML document?
e.g.
String newNode = \"valu
If you're using dom4j, you can just do:
Document document = DocumentHelper.parseText(text);
(dom4j now found here: https://github.com/dom4j/dom4j)