Example of using parameter ENTITY

<!ENTITY %formSchool "INCLUDE"> <!ENTITY %formOffice "IGNORE">   <![ %formSchool;[ &nbs...

Example with external file using parameter ENTITY

genform.dtd: <!ENTITY % formSchool "IGNORE"> <![ %formSchool;[

Basic examples with attributes declaration in XML

<!ATTLIST from employee ID #FIXED> <!ATTLIST picture image ENTITY #IMPLIED>

Complex example of working with attributes in XML

<?xml version="1.0" encoding="UTF-8" standalone =...

Example with built-in entities

DTD: <!DOCTYPE Base[     <!ELEMENT Base (Salary)>       <!ELEMENT...

Example with character entities

The (c) is represented as &#169; decimal value and &#x00A9; hexadecimal value in XML. <?xml version="1.0" encoding="U...

Example with general entities

<!ENTITY foot SYSTEM “MathMeasurement.txt”> <!ENTITY foot PUBLIC “-//Maths Measurement//Len

Example with parameter entities

<!ENTITY % formOffice "INCLUDE"> <![ %formOffice;[     <!ELEMENT form (name, officeName, area)>

Example of external parameter entity

<!ENTITY % foot SYSTEM “MathMeasurement.dtd”> <!ENTITY % foot PUBLIC “-//Maths Measurement//Length Section//EN” “Measure.dtd”>...

Example with predefined entities in XML

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE root[ <!ELEMENT root (proverb)>    ...