My XML-DTD failed to validate this code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE init[
<!ELEMENT init(a)>
<!ELEMENT a(b,c,(d|e))>
<!ELEMENT b (#PCDATA)>
<!ELEMENT c (#PCDATA)>
<!ELEMENT d (#PCDATA)>
<!ELEMENT e (#PCDATA)>
]>
<init>
<a>
dolor
<b> Lorem </b>
dolor
<c> Ipsum </c>
<d> hi </d>
dolor
</a>
</init>
How can I validate the intermediate text via a DTD?
PD: Sorry, I edited the question -- my problem was not solved.
PD2: I use this for validation dtd-html: http://validator.w3.org/check
I see a couple of things:
a
as a mixed content model.Example...
Example #2...