xml parsing

hi alli have a question here. how do you parse a string to an XML format?an example will be most helpful :)thanks in advance
[159 byte] By [xerokool] at [2007-9-26 1:16:26]
# 1

Create a StringReader from the String and then pass this to the SAXBuilder build.

ie

StringReader sr = new StringReader (yourXMLString);

SAXBuilder builder = new SAXBuilder();

Document doc = builder.build(sr);

for a fuller example see -

http://forum.java.sun.com/thread.jsp?forum=34&thread=68031#428592

thebobster at 2007-6-29 0:44:17 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...