Creating a XML DOM from A Java String

I'm am trying to convert a Java String "Jim Test123 Front StreetChicagoFlorida302-945-1717" into a XML DOM. I've been trying to find examples on the net but have not found anything. I'd like to create an XML doc that has Name, Address, City, State and Phone Number. Can any one help?
[293 byte] By [DaveFromOhioa] at [2007-10-1 20:44:59]
# 1

Were there tags in that string you posted that got removed? If yes, then you will want to investigate the javax.xml.parser.dom package. Your goal will be to do something like the following:

try {

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

if (factory == null)

throw new RuntimeException("Unable to create XML document factory");

DocumentBuilder builder = factory.newDocumentBuilder();

if (builder == null)

throw new RuntimeException("Unable to create XML document factory");

return builder.parse(someUri); // or a stream

}

catch (ParserConfigurationException e) {

throw new RuntimeException("Error creating XML document factory : " + e.getMessage());

}

- Saish

Saisha at 2007-7-13 2:43:21 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...