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 org.dom4j.io.aelfred.SAXDriver |
---|---|
<?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/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/valid/P14/ibm14v02.xml</systemID> </resolveEntity> <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/> <qualifiedName>student</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |