Entities (XSM)

Entities enable you to include predefined values, external XML or non-XML files in an XML model targeted with a DTD.

When an XML processor reads an entity reference in an XML document, it will replace this entity reference by its value defined in the DTD file of the XML document.

An entity reference is the entity name preceded by an ampersand and followed by a semicolon.

For example: &furtherinfo; will be replaced by For further information, see.

The W3C has predefined five entities for XML tags:

Entity name

Reference

Value

Less than

<

<

Greater than

&gt;

>

Ampersand

&amp;

&

Apostrophe

&apos;

'

Quotation

&quot;

"

In an XML model, you just need to type the name and the value of an entity.