the four types of default values
<!DOCTYPE doc [ <!ELEMENT doc (a|b|c|d)*> <!ELEMENT a EMPTY> <!ELEMENT b EMPTY> <!ELEMENT c EMPTY> <!ELEMENT d EMPTY> <!ATTLIST a att CDATA #REQUIRED> <!ATTLIST b att CDATA #IMPLIED> <!ATTLIST c att CDATA #FIXED "value"> <!ATTLIST d att CDATA 'default'> ]> <doc><c/><c att="value"/></doc>
Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <startElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>att</localName> <qualifiedName>att</qualifiedName> <value>value</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> </endElement> <startElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>att</localName> <qualifiedName>att</qualifiedName> <value>value</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> </endElement> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</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> |