Tests the "Enumeration" VC by providing a value which wasn't one of the choices.
<!DOCTYPE arbor [ <!ELEMENT arbor EMPTY> <!ATTLIST arbor type (fruit | vegetable) "fruit" > <!-- tests the 'must match one of the nmtokens included in the declaration' part of the "Enumeration" VC --> ]> <arbor type="money"/>
Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>arbor</localName> <qualifiedName>arbor</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>type</localName> <qualifiedName>type</qualifiedName> <value>money</value> <type>NMTOKEN</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>arbor</localName> <qualifiedName>arbor</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">1 >= 1</bug> </ConformanceResults> |