I'm writing a DTD for an XML structure that allows for flexible attribute names, like this:
<root_element>
<child_element>
<element_with_attrib iCouldbeAnything="value" defined="true" />
</child_element>
</root_element>
So here's a simple DTD for this:
<!ELEMENT root_element (child_element)*>
<!ELEMENT child_element (element_with_attrib)+>
<!ELEMENT element_with_attrib EMPTY>
<!ATTLIST element_with_attrib
defined CDATA #IMPLIED
iCouldbeAnything CDATA #IMPLIED
>
The problem is, a requirement for the XML is that "iCouldBeAnything" has to be anything. Is it possible to describe this using DTD or would I need to rely on some other kind of XML validation?