Ingrid
2004-08-18 22:04:15 UTC
Can anybody let me know if - in a DTD - it can be specified that an
element must have content, ie that in the instance document data must
have been entered between the open and closing tag for the document to
validate???
In my experience if the element is declared to contain #PCDATA,
parsers will not throw up an error if nothing has been filled in.
I know that in xsd Schema I can write my own regular expression and
add it as a datatype to the element definition, demanding say
character content between the open and closing tag for validation.
Ingrid
element must have content, ie that in the instance document data must
have been entered between the open and closing tag for the document to
validate???
In my experience if the element is declared to contain #PCDATA,
parsers will not throw up an error if nothing has been filled in.
I know that in xsd Schema I can write my own regular expression and
add it as a datatype to the element definition, demanding say
character content between the open and closing tag for validation.
Ingrid