Tests TextDecl with wrong field ordering. The VersionInfo occurs after the EncodingDecl in the TextDecl in the file "ibm77n01.ent".
<!DOCTYPE root [ <!ELEMENT root (#PCDATA)> <!ATTLIST root att CDATA #IMPLIED> <!--* error in external entity *--> <!ENTITY aExternal SYSTEM "ibm77n01.ent"> ]> <root>&aExternal;</root>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/not-wf/P77/ibm77n01.ent</systemID> </resolveEntity> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/not-wf/P77/ibm77n01.ent</systemID> </resolveEntity> <char>e</char> <char>r</char> <char>s</char> <char>i</char> <char>o</char> <char>n</char> <char>=</char> <char>"</char> <char>1</char> <char>.</char> <char>0</char> <char>"</char> <char>\s</char> <char>?</char> <char>></char> <char>\n</char> <char>\n</char> <char>A</char> <char>N</char> <char>Y</char> <char>\s</char> <char>C</char> <char>O</char> <char>N</char> <char>T</char> <char>E</char> <char>N</char> <char>T</char> <char>\n</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <fatalError/> </ConformanceResults> |