dom4j在读取xml的时候,代码为
SAXReader reader = new SAXReader();
Document document = reader.read(new File(xmlPath));
如果xml 的内容为空,就会报Premature end of file. Nested exception: Premature end of file的错误!!!
dom4j在读取xml的时候,代码为
SAXReader reader = new SAXReader();
Document document = reader.read(new File(xmlPath));
如果xml 的内容为空,就会报Premature end of file. Nested exception: Premature end of file的错误!!!