Tests the Element Valid VC (clause 3) by including a child element not permitted by a mixed content model.
<!DOCTYPE root [ <!ELEMENT root (#PCDATA|root)*> <!ELEMENT exception (#PCDATA)> ]> <root>this is ok <exception>this isn't</exception> </root>
Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>t</char> <char>h</char> <char>i</char> <char>s</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <char>o</char> <char>k</char> <char>\s</char> <startElement> <namespaceURI/> <localName>exception</localName> <qualifiedName>exception</qualifiedName> <attributes/> </startElement> <char>t</char> <char>h</char> <char>i</char> <char>s</char> <char>\s</char> <char>i</char> <char>s</char> <char>n</char> <char>'</char> <char>t</char> <endElement> <namespaceURI/> <localName>exception</localName> <qualifiedName>exception</qualifiedName> </endElement> <char>\s</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <endDocument/> <bug reason="Parser should only throw SAXExceptions" type="java.lang.ArrayIndexOutOfBoundsException">0 >= 0</bug> </ConformanceResults> |