Test demonstrates the use of external entity and how replacement text is retrieved and processed.
<!DOCTYPE doc [ <!ELEMENT doc (#PCDATA)> <!ENTITY e SYSTEM "007.ent"> ]> <doc>X&e;Z</doc>
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <char>X</char> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/xmltest/valid/ext-sa/007.ent</systemID> </resolveEntity> <char>Y</char> <char>Z</char> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> <attributes/> </startElement> <char>X</char> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/xmltest/valid/ext-sa/007.ent</systemID> </resolveEntity> <char>Y</char> <char>Z</char> <endElement> <namespaceURI/> <localName>doc</localName> <qualifiedName>doc</qualifiedName> </endElement> <endDocument/> </ConformanceResults> |