Search code examples
xmldtddtd-parsing

How to know if a DTD is validated or correct?


I have an example of DTD script here, and I was wondering if they are valid, are there any online validator for DTD?

<!ELEMENT A (B* |C+,D)>
<ATTLIST A
    AA CDATA #REQUIRED
    AB CDATA #REQUIRED
    AC(0|1|2) #REQUIRED
>
<!ELEMENT B EMPTY>
<!ATTLIST C(B)>

And Another Question. in the line

 !ELEMENT B EMPTY>
    <!ATTLIST C(B)>

What does that actually mean? can any one provide example?

And this A (B* |C+,D)


Solution

  • Try this XML DTD validator (dead link removed).