Tests type of Misc. An element declaration is used as a type of Misc After the element "animal".
<?xml version="1.0" ?> <!DOCTYPE animal [ <!ELEMENT animal ANY> ]> <animal>Wrong type of Misc following this element!</animal> <!ELEMENT cat EMPTY>
Expected result | Actual result for com.bluecast.xml.Piccolo |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> <attributes/> </startElement> <char>W</char> <char>r</char> <char>o</char> <char>n</char> <char>g</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>o</char> <char>f</char> <char>\s</char> <char>M</char> <char>i</char> <char>s</char> <char>c</char> <char>\s</char> <char>f</char> <char>o</char> <char>l</char> <char>l</char> <char>o</char> <char>w</char> <char>i</char> <char>n</char> <char>g</char> <char>\s</char> <char>t</char> <char>h</char> <char>i</char> <char>s</char> <char>\s</char> <char>e</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>!</char> <endElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> </endElement> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> <attributes/> </startElement> <char>W</char> <char>r</char> <char>o</char> <char>n</char> <char>g</char> <char>\s</char> <char>t</char> <char>y</char> <char>p</char> <char>e</char> <char>\s</char> <char>o</char> <char>f</char> <char>\s</char> <char>M</char> <char>i</char> <char>s</char> <char>c</char> <char>\s</char> <char>f</char> <char>o</char> <char>l</char> <char>l</char> <char>o</char> <char>w</char> <char>i</char> <char>n</char> <char>g</char> <char>\s</char> <char>t</char> <char>h</char> <char>i</char> <char>s</char> <char>\s</char> <char>e</char> <char>l</char> <char>e</char> <char>m</char> <char>e</char> <char>n</char> <char>t</char> <char>!</char> <endElement> <namespaceURI/> <localName>animal</localName> <qualifiedName>animal</qualifiedName> </endElement> <fatalError/> <endDocument/> </ConformanceResults> |