This test violates VC: Element Valid in P39. Illegal elements are inserted in b's content of Mixed type.
<?xml version="1.0"?> <!DOCTYPE root [ <!ELEMENT root (a,b)> <!ELEMENT a EMPTY> <!ELEMENT b (#PCDATA|c)* > <!ELEMENT c ANY> ]> <!--* illgal element in b's Mixed content *--> <root><a/><b> <c></c> content of b element <a/> could not have 'a' as 'b's content </b></root>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> </endElement> <char>\s</char> <char>\n</char> <char>\s</char> <char>\s</char> <char>\s</char> <char>c</char> <char>o</char> <char>n</char> <char>t</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>o</char> <char>f</char> <char>\s</char> <char>b</char> <char>\s</char> <char>e</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\n</char> <char>\s</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <char>\s</char> <char>c</char> <char>o</char> <char>u</char> <char>l</char> <char>d</char> <char>\s</char> <char>n</char> <char>o</char> <char>t</char> <char>\s</char> <char>h</char> <char>a</char> <char>v</char> <char>e</char> <char>\s</char> <char>'</char> <char>a</char> <char>'</char> <char>\s</char> <char>a</char> <char>s</char> <char>\s</char> <char>'</char> <char>b</char> <char>'</char> <char>s</char> <char>\s</char> <char>c</char> <char>o</char> <char>n</char> <char>t</char> <char>e</char> <char>n</char> <char>t</char> <char>\n</char> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <startElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> <attributes/> </startElement> <ignorable>\n</ignorable> <ignorable>\s</ignorable> <ignorable>\s</ignorable> <ignorable>\s</ignorable> <startElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>c</localName> <qualifiedName>c</qualifiedName> </endElement> <char>\s</char> <char>\n</char> <char>\s</char> <char>\s</char> <char>\s</char> <char>c</char> <char>o</char> <char>n</char> <char>t</char> <char>e</char> <char>n</char> <char>t</char> <char>\s</char> <char>o</char> <char>f</char> <char>\s</char> <char>b</char> <char>\s</char> <char>e</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>\n</char> <char>\s</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <char>\n</char> <char>\s</char> <char>\s</char> <char>\s</char> <char>c</char> <char>o</char> <char>u</char> <char>l</char> <char>d</char> <char>\s</char> <char>n</char> <char>o</char> <char>t</char> <char>\s</char> <char>h</char> <char>a</char> <char>v</char> <char>e</char> <char>\s</char> <char>'</char> <char>a</char> <char>'</char> <char>\s</char> <char>a</char> <char>s</char> <char>\s</char> <char>'</char> <char>b</char> <char>'</char> <char>s</char> <char>\s</char> <char>c</char> <char>o</char> <char>n</char> <char>t</char> <char>e</char> <char>n</char> <char>t</char> <char>\n</char> <endElement> <namespaceURI/> <localName>b</localName> <qualifiedName>b</qualifiedName> </endElement> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |