src/main/java/org/dom4j/io/XPPPacketReader.java
public Document read(char[] text) throws DocumentException, IOException,
            XmlPullParserException {
        getXPPParser().setInput(new CharArrayReader(text));
        return parseDocument();
    }
public Document read(char[] text) throws DocumentException, IOException,
            XmlPullParserException {
        getXPPParser().setInput(new CharArrayReader(text));
        return parseDocument();
    }
<p>
Reads a Document from the given array of characters
</p>

@param text
is the text to parse
@return the newly created Document instance
@throws DocumentException
if an error occurs during parsing.