Tests a document with wrong ordering of its prolog and element. The element occurs before the xml declaration and the DTD.
<doc>Wrong ordering between prolog and element!</doc> <?xml version="1.0"?> <!DOCTYPE doc [ <!ELEMENT doc ANY> ]>
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <char>W</char> <char>r</char> <char>o</char> <char>n</char> <char>g</char> <char>\s</char> <char>o</char> <char>r</char> <char>d</char> <char>e</char> <char>r</char> <char>i</char> <char>n</char> <char>g</char> <char>\s</char> <char>b</char> <char>e</char> <char>t</char> <char>w</char> <char>e</char> <char>e</char> <char>n</char> <char>\s</char> <char>p</char> <char>r</char> <char>o</char> <char>l</char> <char>o</char> <char>g</char> <char>\s</char> <char>a</char> <char>n</char> <char>d</char> <char>\s</char> <char>e</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>!</char> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/not-wf/P01/ibm01n02.xml</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <char>W</char> <char>r</char> <char>o</char> <char>n</char> <char>g</char> <char>\s</char> <char>o</char> <char>r</char> <char>d</char> <char>e</char> <char>r</char> <char>i</char> <char>n</char> <char>g</char> <char>\s</char> <char>b</char> <char>e</char> <char>t</char> <char>w</char> <char>e</char> <char>e</char> <char>n</char> <char>\s</char> <char>p</char> <char>r</char> <char>o</char> <char>l</char> <char>o</char> <char>g</char> <char>\s</char> <char>a</char> <char>n</char> <char>d</char> <char>\s</char> <char>e</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>!</char> <endElement> <namespaceURI/> <localName/> <qualifiedName>doc</qualifiedName> </endElement> <fatalError/> <endDocument/> </ConformanceResults> |