采用DOM解析XML
public void testReadDOM() throws ParserConfigurationException, SAXException, IOException{DomXml sax = new DomXml();InputStream inStream = this.getClass().getClassLoader().getResourceAsStream("secn.xml");List<Person> persons = sax.domParser(inStream);for(Person person:persons){Log.i("SaxTest", String.valueOf(person.getName()));}}?