package org.wamblee.xml;
+import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
// Empty.
}
+ /**
+ * Parses an XML document from a string.
+ * @param aDocument document.
+ * @return
+ */
+ public static Document read(String aDocument) throws SAXException, ParserConfigurationException, IOException {
+ ByteArrayInputStream is = new ByteArrayInputStream(aDocument.getBytes());
+ return read(is);
+ }
/**
* Parses an XML document from a stream.