DTD element type problem?

When defining an element in a DTD, there is no way to restrict the text inside the element. You can only tell what other element (child elements) it might contain and their order, or you can tell that the element contains text, or a mixture of the 2.

When defining an element in a DTD, there is no way to restrict the text inside the element. You can only tell what other element (child elements) it might contain and their order, or you can tell that the element contains text, or a mixture of the 2. So, basically you have 2 options for restricting the : either declare it as an attribute (), or declare children elements and .

The choice between those 2 options depends on what you are trying to describe and what will change depending on the type of fuel-system. (the grammar for the declaration of an element is defined here) examples: first option, attributes second option, child elements.

I convince to my teacher it is not possible in DTD and I will construct my DTD like your response..Thanks for your answer :) – user216428 Nov 23 '09 at 8:10.

Using XML Schema you can restrict element text to an enumerated list of values.

Your response is an another answer of my duty. Thanks a lot :) – user216428 Nov 23 '09 at 8:11.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions