![]() The first thing to check when an entity reference such as – fails is that the entity is declared in the DTD. References to any other entity can only be used in a document that includes a DTD and then the DTD must declare the entity. These pre-defined entities are amp, lt, gt, quot, and apos. They provide an easy method of entering data characters that would otherwise be interpreted as markup. ![]() Five entities for special characters are built into XML. SGML and XML entity references can be used for a variety of purposes including special characters. You referred to "character references" in the first message in this thread, but the examples you mention include:Īctually, only the last one is a character reference (the # is important).
0 Comments
Leave a Reply. |