Home arrow static arrow Java Programming [Archive] - JDOM
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - JDOM
This topic has 1 reply on 1 page.

Registered: 4/9/04
Jul 6, 2004 1:38 PM


I'm doing an XML parser using JDOM. I convert stuff from "memory" to a String according to XML "structure" like this:

XMLOutputter salida = new XMLOutputter();
String lineaXML = new String(salida.outputString(documento));

The problem is that i don't find a way to read XML from a String (i did it from files). So do u know how can i do it???


Registered: 4/30/99
Re: JDOM  
Jul 6, 2004 1:46 PM (reply 1 of 1)

I'm unfamiliar with the product but from a quick look at the documentation:
Document doc = new SAXBuilder().build(new StringReader(yourXMLString));
This topic has 1 reply on 1 page.