XML DTDLesson 76Free preview
DTD Building Blocks
This lesson is part of XML · All levels
Summary
The DTD block consists of an element declaration, an attribute declaration, an entity declaration, as well as a content type PCDATA and CDATA. PCDATA contains text that remains parsed by the parser so the mark is less than required to be exported, whereas CDATA is completely missed by the parser. Understanding these blocks is the foundation of writing a true DTD.
Key points
- PCDATA = parsed character data, text that parsed parser
- CDATA = unparsed data character, secure for raw text
- Declaration of the elements: <!ELEMENT name (content)>
- Attributes are defined as:
- Entity declaration: <!ENTITY name "value">
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.