Tests NDataDecl with a required field missing. The Name after the key word "NDATA" is missing in the NDataDecl in the EntityDef in the GEDecl.
<?xml version="1.0"?> <!DOCTYPE root [ <!ELEMENT root (#PCDATA)> <!ATTLIST root att CDATA #IMPLIED> <!NOTATION JPGformat SYSTEM "JPGFormat"> <!--* Missing Name field in NdataDecl *--> <!ENTITY aImage SYSTEM "image.jpg" NDATA> ]> <root/>
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/> <unparsedEntity> <name>aImage</name> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/not-wf/P76/image.jpg</systemID> <notation/> </unparsedEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <fatalError/> <fatalError/> </ConformanceResults> |