7.10 External UnParsed Entities
| Declaration | <!ENTITY name external-id NDATA notation-declaration> |
| Attribute type | ENTITY |
| | ENTITIES |
| Reference in attributes | name |
- The value of a parsed entity is passed by the parser to the application in
a processed form.
- The value of an unparsed entity is to be interpreted by the application
without help from the parser. The parser passes the content through
without processing.
- The notation declaration indicates the format of the file or references a
helper utility.
<?xml version="1.0" ?>
<!DOCTYPE doc [
<!NOTATION gif PUBLIC
"-//CompuServe//NOTATION Graphics Interchange Format 89a//EN" >
<!ELEMENT doc (get)* >
<!ELEMENT get EMPTY>
<!ATTLIST get obj ENTITY #IMPLIED >
<!ENTITY pict SYSTEM "fig.gif" NDATA gif >
]>
<doc>
<get obj="pict" />
</doc>
The interface DTDHandler provides the following method to the application for
processing the entity.
void unparsedEntityDecl(String name, String publicId, String
systemId, String notationName)