XML declaration must be at the very beginning of a document; it"s not a processing instruction
<?xml version="1.0"?> <!-- SGML-ism: XML PI not at beginning --> <!DOCTYPE root [ <!ELEMENT root EMPTY> ]> <root/>
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/not-wf/sgml02.xml</systemID> </resolveEntity> <fatalError/> <endDocument/> </ConformanceResults> |