External entities have "text declarations", which do not permit the "standalone=..." attribute that's allowed in XML declarations.
<!DOCTYPE doc [ <!ELEMENT doc (#PCDATA)> <!ENTITY e SYSTEM "002.ent"> ]> <doc>&e;</doc>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/xmltest/not-wf/ext-sa/002.ent</systemID> </resolveEntity> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/xmltest/not-wf/ext-sa/002.ent</systemID> </resolveEntity> <char>t</char> <char>a</char> <char>n</char> <char>d</char> <char>a</char> <char>l</char> <char>o</char> <char>n</char> <char>e</char> <char>=</char> <char>"</char> <char>y</char> <char>e</char> <char>s</char> <char>"</char> <char>?</char> <char>></char> <char>\n</char> <char>d</char> <char>a</char> <char>t</char> <char>a</char> <char>\n</char> <char>\n</char> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <fatalError/> </ConformanceResults> |