Stylus Studio XML Editor

Table of contents

Appendices

4 Physical Structures

Physical Structures

An XML document may consist of one or many storage units. These are called entities; they all have content and are all (except for the Document Entity and the Document Type Declaration) identified by entity name. Each XML document has one entity called the Document Entity, which serves as the starting point for the XML Processor and may contain the whole document.

Entities may be either parsed or unparsed. The contents of a parsed entity are referred to as its Replacement Text; this Text is considered an integral part of the document.

An unparsed entity is a resource whose contents may or may not be Text, and if text, may be other than XML. Each unparsed entity has an associated Notation, identified by name. Beyond a requirement that an XML processor make the identifiers for the entity and notation available to the application, XML places no constraints on the contents of unparsed entities.

Parsed entities are invoked by name using entity references; unparsed entities by name, given in the value of ENTITY or ENTITIES attributes.

General entities are entities for use within the document content. In this specification, general entities are sometimes referred to with the unqualified term entity when this leads to no ambiguity. Parameter entities are parsed entities for use within the DTD. These two types of entities use different forms of reference and are recognized in different contexts. Furthermore, they occupy different namespaces; a parameter entity and a general entity with the same name are two distinct entities.