XML DTDLesson 80Free preview
DTD Entities
This lesson is part of XML · All levels
Summary
Entity is an abbreviation for value that can be reused in an XML or DTD document. XML provides five built-in entities for specific characters, while the entity itself is declared with the <!ENTITY name "value">. There are also entity parameters that use the % sign and are specifically used in DTD.
Key points
- The built-in entity: < > & apos; & quot;
- Custom entity: <!ENTITY writer "Doe"> and then used as &writer;
- The entity parameter uses % and only applies to DTD
- The internal entity is written direct value, the external pointing to the file
- External entities could be at risk of XXE security if parser is allowed.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.