sax解析util
简单的sax解析方式更灵活的使用
Stringresult="";
try{
Stringfilename="students.xml";
URLurl=Configuration.class.getClassLoader().getResource(filename);
Stringstr=url.getFile();
//转换编码
str=URLDecoder.decode(str,"utf-8");
Fileconf=newFile(str);
SAXReaderreader=newSAXR
下载地址
用户评论