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