In the xml spec, it says:
[Definition: An element type has mixed content when elements of that type may contain character data, optionally interspersed with child elements.] In this case, the types of the child elements may be constrained, but not their order or their number of occurrences
Is there any way to work around this to make this xml valid:
<parent>
A text node
<child/>
</parent>
but this xml invalid:
<parent>
A text node
<child/>
<child/>
</parent>
Also, do you know any reason for why this is not allowed?
<!ELEMENT parent (#PCDATA,child)>