+ -
当前位置:首页 → 问答吧 → dom4j解析XML

dom4j解析XML

时间:2010-11-04

来源:互联网

Document xmlDoc = new XPPReader().read(new ByteArrayInputStream(xml.getBytes()));

  Multiple annotations found at this line:
- The method read(InputStream) from the type XPPReader refers to the missing type 
XmlPullParserException
- The type org.gjt.xpp.XmlPullParserException cannot be resolved. It is indirectly 
referenced from required .class files

作者: r5432vb45b4364b654   发布时间: 2010-11-04

CSS code

   read返回类型不匹配, 你强制转化下

作者: leehuat   发布时间: 2010-11-04