Empty content can't contain a PI
<!DOCTYPE foo [ <!ELEMENT foo EMPTY> ]> <foo><?pi xxx?></foo>
Expected result | Actual result for org.dom4j.io.aelfred.SAXDriver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <processingInstruction> <target>pi</target> <data>xxx</data> </processingInstruction> <endElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/eduni/errata-2e/E15c.xml</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>foo</localName> <qualifiedName>foo</qualifiedName> <attributes/> </startElement> <processingInstruction> <target>pi</target> <data>xxx</data> </processingInstruction> <endElement> <namespaceURI/> <localName/> <qualifiedName>foo</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |