Tests markupdecl with an illegal markup declaration. A XMLDecl occurs inside the DTD.
<!DOCTYPE animal [ <?xml version="1.0" encoding="ASCII" ?> <!-- Illegal markupdecl in DTD --> <!ELEMENT animal (cat|tiger|leopard)+> <!ELEMENT cat EMPTY> <!ELEMENT tiger (#PCDATA)> <!ELEMENT leopard ANY> <!ELEMENT small EMPTY> <!ELEMENT big EMPTY> <!ATTLIST tiger color CDATA #REQUIRED> ]> <animal> <cat/> <tiger color="white">This is a white tiger in Mirage!!</tiger> <cat/> <leopard> <small/> <big/> </leopard> </animal>
Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <fatalError/> <endDocument/> </ConformanceResults> |