Click here to Skip to main content
15,902,634 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
1)Can v define date type in dtd?
2)In dtd (*)means 0 or more and (+)means 1 or more,how we can define upper limit in dtd?
Posted

1 solution

If you need well-defined data types, bear in mind that XML Schema definition provides much more expressive power compared to Document type. Compared to schema definition, DOCTYPE can be considered rudimentary. Also, DTD in XML Standard is not a keyword of the language but a term used in language definition (very dirty, buy the way); there is Document type or DOCTYPE, which is only parsed as a part of XML document. DTD is also just a usual type extension for so called external reference and. The difference seems subtle but it has been a source of many confusions.

To get answers to all you question, see this and the references from this document: http://www.w3.org/TR/REC-xml/[^]. In particular, you will see that multiplicity specification is limited by '?', '*' and '+'.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900