Tests ignoreSect with a required field missing. The key word "IGNORE" is missing in the ignoreSect in the file ibm63n04.dtd.
<?xml version="1.0"?> <!-- syntax test for Production 63--> <!DOCTYPE animal SYSTEM "ibm63n04.dtd" [ <!ELEMENT animal ANY> <!ELEMENT tiger (#PCDATA)> <!ATTLIST animal a (tiger) #REQUIRED> ]> <animal a = "TIGER1"> Negative test. Missing required field(The keyword IGNORE is missing). </animal>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/not-wf/P63/ibm63n04.dtd</systemID> </resolveEntity> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/not-wf/P63/ibm63n04.dtd</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <value>TIGER1</value> <type/> </attribute> </attributes> </startElement> <char>\n</char> <char>N</char> <char>e</char> <char>g</char> <char>a</char> <char>t</char> <char>i</char> <char>v</char> <char>e</char> <char>\s</char> <char>t</char> <char>e</char> <char>s</char> <char>t</char> <char>.</char> <char>\s</char> <char>\s</char> <char>M</char> <char>i</char> <char>s</char> <char>s</char> <char>i</char> <char>n</char> <char>g</char> <char>\s</char> <char>r</char> <char>e</char> <char>q</char> <char>u</char> <char>i</char> <char>r</char> <char>e</char> <char>d</char> <char>\s</char> <char>f</char> <char>i</char> <char>e</char> <char>l</char> <char>d</char> <char>(</char> <char>T</char> <char>h</char> <char>e</char> <char>\s</char> <char>k</char> <char>e</char> <char>y</char> <char>w</char> <char>o</char> <char>r</char> <char>d</char> <char>\s</char> <char>I</char> <char>G</char> <char>N</char> <char>O</char> <char>R</char> <char>E</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <char>m</char> <char>i</char> <char>s</char> <char>s</char> <char>i</char> <char>n</char> <char>g</char> <char>)</char> <char>.</char> <char>\n</char> <endElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> </endElement> <fatalError/> </ConformanceResults> |