1.0 测试用例中加载文件的路径 InputStream in=this.getClass().getClassLoader().getResourceAsStream("文件路径.xml"); 2.0 XML必须是良构的