Tests DefaultDecl with wrong key word. The string "#required" is used as the key word in the DefaultDecl in the AttDef in the AttlistDecl in the DTD.
<?xml version="1.0"?> <!-- syntax test for Production 60--> <!DOCTYPE Java [ <!ELEMENT Java ANY> <!ELEMENT one EMPTY> <!ATTLIST one chapter CDATA #required> ]> <Java> <one chapter="Introduction"></one> Negative Test. Case sensitive. </Java>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <bug reason="Parser should only throw SAXExceptions" type="java.util.MissingResourceException">Can't find resource for bundle java.util.PropertyResourceBundle, key XML-0288</bug> </ConformanceResults> |