Tests StringType for P55. The "CDATA" occurs in the StringType for the attribute "att" for the element "a".
<?xml version="1.0"?> <!-- test valid syntax for Production 55--> <!DOCTYPE StType [ <!ELEMENT StType ANY> <!ELEMENT a EMPTY> <!ATTLIST a att CDATA #IMPLIED> ]> <StType> <a att='Hello'/> Testing with a valid stringType attribute </StType>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>StType</localName> <qualifiedName>StType</qualifiedName> <attributes/> </startElement> <char>\n</char> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>att</localName> <qualifiedName>att</qualifiedName> <value>Hello</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <char>\n</char> <char>T</char> <char>e</char> <char>s</char> <char>t</char> <char>i</char> <char>n</char> <char>g</char> <char>\s</char> <char>w</char> <char>i</char> <char>t</char> <char>h</char> <char>\s</char> <char>a</char> <char>\s</char> <char>v</char> <char>a</char> <char>l</char> <char>i</char> <char>d</char> <char>\s</char> <char>s</char> <char>t</char> <char>r</char> <char>i</char> <char>n</char> <char>g</char> <char>T</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>a</char> <char>t</char> <char>t</char> <char>r</char> <char>i</char> <char>b</char> <char>u</char> <char>t</char> <char>e</char> <char>\s</char> <char>\n</char> <endElement> <namespaceURI/> <localName>StType</localName> <qualifiedName>StType</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>StType</localName> <qualifiedName>StType</qualifiedName> <attributes/> </startElement> <ignorable>\n</ignorable> <startElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>att</localName> <qualifiedName>att</qualifiedName> <value>Hello</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>a</localName> <qualifiedName>a</qualifiedName> </endElement> <char>\n</char> <char>T</char> <char>e</char> <char>s</char> <char>t</char> <char>i</char> <char>n</char> <char>g</char> <char>\s</char> <char>w</char> <char>i</char> <char>t</char> <char>h</char> <char>\s</char> <char>a</char> <char>\s</char> <char>v</char> <char>a</char> <char>l</char> <char>i</char> <char>d</char> <char>\s</char> <char>s</char> <char>t</char> <char>r</char> <char>i</char> <char>n</char> <char>g</char> <char>T</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>a</char> <char>t</char> <char>t</char> <char>r</char> <char>i</char> <char>b</char> <char>u</char> <char>t</char> <char>e</char> <char>\s</char> <char>\n</char> <endElement> <namespaceURI/> <localName>StType</localName> <qualifiedName>StType</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |