Next / Previous / Contents / TCC Help System / NM Tech homepage

4.2. Elements with text content only

If you want an element to contain only text, declare it like this:

    <!ELEMENT gi (#PCDATA)>

The #PCDATA part means “parsed character data.”

For example, suppose your DTD has this declaration:

    <!ELEMENT remark (#PCDATA)>

Then a conforming XML document could have an element in it that looks like this:

    <remark>There was something fishy about the butler.
      I think he was working for scale.</remark>