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!

disabling empty content with DTD

843834Apr 14 2003 — edited Apr 14 2003
Hello,

I've only recently started working with DTDs and have been unable to specify that the content of a certain element should never be empty.
Is it at all possible ?

<!ELEMENT elem1 (#PCDATA)>

allows <elem1/> !!!

I'm using the JAXP default parser implementation.

Thanks in advance.

Nuno
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2003
Added on Apr 14 2003
8 comments
199 views