XML support for DTD ANY and schema anyType
DTD and schema permit elements to be defined to have any content. These definitions look similar to:
- DTD:
<ELEMENT foo ANY>
- Schema:
<xsd:element name="foo" type="xsd:anyType" />
<xsd:element name="foo" />
The element
foo
can have any child elements or attributes or text as
its content without explicitly specifying them.
This is supported by treating these declarations as if they were strings. The OCM is created as if the declarations were written similar to these:
- DTD:
<ELEMENT foo (#PCDATA)>
- Schema:
<xsd:element name="foo" type="xsd:string" />