In a DTD, how could I specify a set of values that an element (not an attribute) could contain.

Serge Knystautas

DTDs do not allow you to specify possible values of data, either for attributes or elements. It basically only allows you to specify how elements nest and their attributes.

XML Schema will allow you to do this.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact