I'm currently trying to write a DTD for an XML file.


In the xml I came across this type of things :



<CHAMP NAME="JBRTHDTC" DOMAIN="DM" DB="YES:CRF" TYPE="JOUR" FORCED="YES" AFFICHE="YES">
<![CDATA[ Date de naissance: ]]>
<MESSAGE><![CDATA[Date de naissance (Jour)]]></MESSAGE>
</CHAMP>


Is it ok to have CDATA and a xml element inside another?


If so, how can I manage to write it in DTD? Like



ELEMENT CHAMP (MESSAGE?|CDATA??)>

No comments:

Post a Comment