Text declarations (which optionally begin any external entity) are required to have "encoding=...".
<!DOCTYPE root SYSTEM "dtd07.dtd" [ <!ELEMENT root EMPTY> ]> <root/>
Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/not-wf/dtd07.dtd</systemID> </resolveEntity> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/not-wf/dtd07.dtd</systemID> </resolveEntity> <fatalError/> <endDocument/> </ConformanceResults> |