Tests PubidChar. The pubidChar of the PubidLiteral for the entity "info" contains the character double quote in the middle.
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE student [ <!ENTITY info PUBLIC "This is a test á " "student.dtd"> ]> <!-- testing invalid pubid char with á --> <student>My Name is &info;. </student>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>student</localName> <qualifiedName>student</qualifiedName> <attributes/> </startElement> <char>M</char> <char>y</char> <char>\s</char> <char>N</char> <char>a</char> <char>m</char> <char>e</char> <char>\s</char> <char>i</char> <char>s</char> <char>\s</char> <resolveEntity> <publicID>This\sis\sa\stest\sá\s</publicID> <systemID>file:/home/elharo/SAXTest/xmlconf/ibm/not-wf/P13/student.dtd</systemID> </resolveEntity> <ignorable>\n</ignorable> <ignorable>\n</ignorable> <fatalError/> <fatalError/> <fatalError/> <fatalError/> </ConformanceResults> |