Tests the Element Valid VC (clause 2) for one instance of "children" content model, providing text content where one or more elements are required.
<!DOCTYPE root SYSTEM "../valid/dtdtest.dtd"> <root> <once-or-twice-e>No text allowed!</once-or-twice-e> </root>
Expected result | Actual result for org.apache.crimson.parser.XMLReaderImpl |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/valid/dtdtest.dtd</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <char>\s</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>once-or-twice-e</localName> <qualifiedName>once-or-twice-e</qualifiedName> <attributes/> </startElement> <char>N</char> <char>o</char> <char>\s</char> <char>t</char> <char>e</char> <char>x</char> <char>t</char> <char>\s</char> <char>a</char> <char>l</char> <char>l</char> <char>o</char> <char>w</char> <char>e</char> <char>d</char> <char>!</char> <endElement> <namespaceURI/> <localName>once-or-twice-e</localName> <qualifiedName>once-or-twice-e</qualifiedName> </endElement> <char>\n</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/invalid/../valid/dtdtest.dtd</systemID> </resolveEntity> <startElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> <attributes/> </startElement> <char>\n</char> <char>\s</char> <char>\s</char> <char>\s</char> <char>\s</char> <startElement> <namespaceURI/> <localName>once-or-twice-e</localName> <qualifiedName>once-or-twice-e</qualifiedName> <attributes/> </startElement> <char>N</char> <char>o</char> <char>\s</char> <char>t</char> <char>e</char> <char>x</char> <char>t</char> <char>\s</char> <char>a</char> <char>l</char> <char>l</char> <char>o</char> <char>w</char> <char>e</char> <char>d</char> <char>!</char> <endElement> <namespaceURI/> <localName>once-or-twice-e</localName> <qualifiedName>once-or-twice-e</qualifiedName> </endElement> <char>\n</char> <endElement> <namespaceURI/> <localName>root</localName> <qualifiedName>root</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |