[jdom-interest] String tree to DOM?
cedric.claus at u-mangate.com
Sun Dec 14 06:22:33 PST 2003
Vic Cekvenich wrote:
> I am using a payment processing service and I create a Document using
> elements to send them a XML Document as a String via API.
> They return a string... representation of an XML document.
> Is there a way that I can create a new Documment out of this String,
> without having to parse it?
> (it's not an elment, the entire tree of a dcoument is there)
> ps: is there more stuff coming out of jDom or is it parked?
> To control your jdom-interest membership:
I 've already do this thanks to Input Stream :
Create a ByteArrayInputStream with your String. Give this InputStream to
public Document toDocument(String string) throws JDOMException,
InputStream input = new ByteArrayInputStream(string.getBytes());
SAXBuilder builder = new SAXBuilder();
More information about the jdom-interest