DTD Validation: EMPTY or (EMPTY)
I am having problem DTD validating a XML Document for an empty element with attributes
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT Mynode (Header)>
<!ELEMENT Header (EMPTY)>
<!ATTLIST Header attra CDATA #REQUIRED
attrb CDATA #REQUIRED>
once i have a valid xml document and try to validate it against above DTD using SAXParsing (using JAXP), i get
"The content of element type "Header " is incomplete, it must match "(EMPTY)"
when i take out the brackets from EMPTY, it works fine,
i know the significance of brackets for PCDATA and using them when there are child elements but i wonder if using them for EMPTY is correct?
Is it ok to use (EMPTY) instead of EMPTY when you want to have an empty element?
Is there a difference between both?
Thanks in advance

