Here you can find the source of parse(String xml)
public static <T> T parse(String xml) throws ParserConfigurationException, SAXException
//package com.java2s; import org.xml.sax.SAXException; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; public class Main { public static <T> T parse(String xml) throws ParserConfigurationException, SAXException { SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser parse = factory.newSAXParser(); return null; }/* w w w. j a v a 2 s . co m*/ }