Tests StringType with a wrong key word. The string "#CDATA" is used as the StringType in the AttType in the AttlistDecl in the DTD.
<?xml version="1.0"?> <!-- test invalid syntax for Production 55--> <!DOCTYPE AttrType [ <!ELEMENT AttrType (#PCDATA)> <!ELEMENT a EMPTY> <!ATTLIST a att #CDATA #IMPLIED> ]> <AttrType> Giving a wrong character. </AttrType>
| 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>
|