Testing CharData with white space character
<?xml version="1.0"?> <!DOCTYPE student [ <!ELEMENT student (#PCDATA)> <!ATTLIST student first CDATA #REQUIRED last CDATA #IMPLIED> ]> <!-- testing chardata with white space --> <student first="Eric"> 
 	 
 </student>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>student</localName> <qualifiedName>student</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>first</localName> <qualifiedName>first</qualifiedName> <value>Eric</value> <type>CDATA</type> </attribute> </attributes> </startElement> <char>\s</char> <char>\n</char> <char>\s</char> <char>\t</char> <char>\s</char> <char>\r</char> <char>\s</char> <endElement> <namespaceURI/> <localName>student</localName> <qualifiedName>student</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>student</localName> <qualifiedName>student</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>first</localName> <qualifiedName>first</qualifiedName> <value>Eric</value> <type>CDATA</type> </attribute> </attributes> </startElement> <char>\s</char> <char>\n</char> <char>\s</char> <char>\t</char> <char>\s</char> <char>\n</char> <char>\s</char> <endElement> <namespaceURI/> <localName>student</localName> <qualifiedName>student</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |