Tests the Entity Declared WFC. Note: a nonvalidating parser is permitted not to report this WFC violation, since it would need to read an external parameter entity to distinguish it from a violation of the Standalone Declaration VC.
<?xml version="1.0" standalone="yes"?> <!DOCTYPE doc SYSTEM "185.ent"> <doc>&e;</doc>
| 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/xmltest/not-wf/sa/185.ent</systemID>
</resolveEntity>
<startElement>
<namespaceURI/>
<localName>doc</localName>
<qualifiedName>doc</qualifiedName>
<attributes/>
</startElement>
<fatalError/>
<endDocument/>
</ConformanceResults>
| <?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
<startDocument/>
<resolveEntity>
<systemID>file:/home/elharo/SAXTest/xmlconf/xmltest/not-wf/sa/185.ent</systemID>
</resolveEntity>
<endDocument/>
<bug reason="Parser should only throw SAXExceptions" type="java.lang.ArrayIndexOutOfBoundsException">0 >= 0</bug>
</ConformanceResults>
|