Tests the Entity Declared WFC, ensuring that a reference to externally defined entity causes a well-formedness error.
<?xml version='1.0' standalone='yes'?> <!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [ <!-- External entity ref --> ]> <attributes token = "b" id = "external-&number;" />
Expected result | Actual result for oracle.xml.parser.v2.SAXParser |
---|---|
<?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <resolveEntity> <systemID>file:/home/elharo/SAXTest/xmlconf/sun/valid/sa.dtd</systemID> </resolveEntity> <fatalError/> <endDocument/> </ConformanceResults> | <?xml version="1.0" encoding="UTF-8"?> <ConformanceResults> <startDocument/> <startElement> <namespaceURI/> <localName>attributes</localName> <qualifiedName>attributes</qualifiedName> <attributes> <attribute> <namespaceURI/> <localName>id</localName> <qualifiedName>id</qualifiedName> <value>external-</value> <type>CDATA</type> </attribute> <attribute> <namespaceURI/> <localName>token</localName> <qualifiedName>token</qualifiedName> <value>b</value> <type>CDATA</type> </attribute> </attributes> </startElement> <endElement> <namespaceURI/> <localName>attributes</localName> <qualifiedName>attributes</qualifiedName> </endElement> <fatalError/> </ConformanceResults> |