Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DTD: how to set ELEMENT format (e.g. date)?

416044Mar 19 2004 — edited Mar 19 2004
How can i define an element in a DTD so that it's values must conform to a date syntax, e.g. "yyyy-MM-dd"?
<!ELEMENT changedat (#PCDATA)>
is the usual definition, but that just says that an element <changedat> has string characters. Are there any additional parameters you can set in the DTD so that the element values are checked for specific formats?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2004
Added on Mar 19 2004
1 comment
322 views