My XML may contain multiple param
entries, each with key
and value
attribute likes this:
<entry id="entry1">
<classParams>
<param key="pluginid" value="monitorPlugin" />
<param key="pluginid2" value="monitorPlugin2" />
</classParams>
</entry>
AND/OR one single classParams
only containing one string like this:
<entry id="entry2">
<classParams>
Im a string
</classParams>
</entry>
My DTD:
<!ELEMENT classParams ( #PCDATA | param* )* >
<!ATTLIST id CDATA #REQUIRED value CDATA #REQUIRED >
<!ELEMENT param ( #PCDATA ) >
How do I define my DTD correctly, concerning the two entry types and the attribute definition for only one type?