General Question

GrayTax's avatar

What does the use of the # symbol mean in XML Document Type Definitions?

Asked by GrayTax (546 points ) February 13th, 2012

So in a lecture today we were learning about creating DTDs for XML documents. One of the examples contained the following lines:

<!ATTLIST Order key CDATA #REQUIRED>
<!ELEMENT Name (#PCDATA)>

I asked my lecturer why there was a # before PCDATA but not CDATA, but he didn’t know (he guessed it might be something to do with encoding) so I put it to you, collective: what does the # symbol signify?

I know I could probably trawl for disjointed answers on forums and the like, but I hoped a kindly jelly could tell me straight, or at least point me at a nice resource :D

Observing members: 0 Composing members: 0

1 Answer

Response moderated (Unhelpful)

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther