Test case ibm-valid-P14-ibm14v02.xml: org.apache.crimson.parser.XMLReaderImpl Passed

Test case ibm-valid-P14-ibm14v02.xml: org.apache.crimson.parser.XMLReaderImpl Passed

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"> &#x0A; &#x09; &#x0D;&#x20;</student>


Expected resultActual result for org.apache.crimson.parser.XMLReaderImpl
<?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>\r</char>
    <char>\s</char>
    <endElement>
        <namespaceURI/>
        <localName>student</localName>
        <qualifiedName>student</qualifiedName>
    </endElement>
    <endDocument/>
</ConformanceResults>