How can I parse an XML from String?
I've used following code to parse XML file.
-----
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setIgnoringElementContentWhitespace(true);
factory.setIgnoringComments(true);
DocumentBuilder builder = factory.newDocumentBuilder();
Document XMLDoc = builder.parse(fileName);
-----
builder.parse(...) does not take String input... please help.