XML - Entity (Physical Storage)

Card Puncher Data Processing

About

An XML document may consist of one or many physical units (storage) that are called entities.

Parsed/Unparsed

Entities may be either parsed or unparsed.

Parsed

A parsed entity contains text, a sequence of characters, which may represent:

Unparsed

An unparsed entity is a resource whose contents may or may not be text, and if text, may be other than XML.

Identification

They all have content and are all (except for the document entity and the external DTD subset) identified by entity name.

Type Entity

Document

A document begins in a “root” or document entity.

Each XML document has one entity called the document entity or root, which serves as the starting point for the XML processor and may contain the whole document.

The document entity serves as the root of the entity tree and a starting-point for an XML processor.

Unlike other entities, the document entity has no name and might well appear on a processor input stream without any identification at all.

Declaration

Entity declaration are used in the DTD.

Parameter

Parameter entities are parsed entities for use within the DTD.

Example of a parameter-entity reference:

<!-- declare the parameter entity "ISOLat2"... -->
<!ENTITY % ISOLat2  SYSTEM "http://www.xml.com/iso/isolat2-xml.entities" >
<!-- ... now reference it. -->
%ISOLat2;

Reference

Special characters have a meaning in XML. If you place them like “<” inside an XML element, it will generate an error because the parser interprets it as the start of a element.

There are 5 predefined entity references in XML:

&lt; < less than
&gt; > greater than
&amp; & ampersand
&apos; ' apostrophe
&quot; quotation mark

An entity reference refers to the content of a named entity.

Syntax:

&Name

Examples:

This document was prepared on &docdate; and
is classified &security-level;.





Discover More
DOM - Entity Node

Entity processing in the DOM. Like Attribute nodes, Entity nodes do not appear as children of DOM nodes.
Jaxpintro Domapi
Java XML - DOM Jaxp

The DOM API of the JSE (ie Jaxp) in Java to process an XML file. To see other DOM implementation, see org.w3c.dom: Defines the Document class (a DOM) as well as classes for all the components...
Card Puncher Data Processing
XML - (Markup) Declaration (validation|constraint)

The element structure of an XML document may, for validation purposes, be constrained using: element type and declarations defined in the doctype: inlined or externally via dtd file These...
Card Puncher Data Processing
XML - (Structured) Document

Documents are built from node (elements and text node between node element). These elements form a tree using the DOM. Each XML documents begin with an XML declaration which specifies the version of...
Card Puncher Data Processing
XML - (Structure|Representation)

Each XML document has both: a and a structure. XML provides a mechanism, the document type declaration: to define constraints on the logical structure and to support the use of predefined...
Card Puncher Data Processing
XML - Document Type (Definition|Declaration) (DTD)

Document Type Definition (DTD) is a grammar (language) that defines the schema (ie data structure) of an XML document. It defines constraints on the logical structure supports the use of predefined...
Card Puncher Data Processing
XML - Markup

The function of the markup in an XML document is to describe its structure: storage (physical) and logical structure (and to associate attribute name-value pairs with its logical structures). Markup...
Card Puncher Data Processing
XML - Notation

Notations identify by name the format of unparsed entities, the format of elements which bear a notation attribute, or the application to which a processing instruction is addressed. Notation...
Card Puncher Data Processing
XSLT/XPath - (Data|Document) Model

Like the Document Object Model (DOM), the XSLT/XPath data model consists of a tree containing a variety of nodes. The XPath specification defines an abstract document model that defines seven kinds...
Card Puncher Data Processing
Xml - Infoset

The XML Infoset: is a tree-based hierarchical representation of an XML document. is the abstract data and metadata (ie abstract means independently of this representation, independent of the actual...



Share this page:
Follow us:
Task Runner