Tests the Element Valid VC (clause 4) by including an undeclared child element.
<!DOCTYPE root [ <!ELEMENT root ANY> ]> <root> <undeclared/> </root>
Expected result | Actual result for com.jclark.xml.sax.SAX2Driver |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>\s</char> <startElement> <namespaceURI/> <localName>undeclared</localName> <qualifiedName>undeclared</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>undeclared</localName> <qualifiedName>undeclared</qualifiedName> </endElement> <char>\s</char> <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> <char>\s</char> <startElement> <namespaceURI/> <localName>undeclared</localName> <qualifiedName>undeclared</qualifiedName> <attributes/> </startElement> <endElement> <namespaceURI/> <localName>undeclared</localName> <qualifiedName>undeclared</qualifiedName> </endElement> <char>\s</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |