0

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)

user962206
  • 15,637
  • 61
  • 177
  • 270

1 Answers1

0

Try this XML DTD validator (dead link removed).

Dave Everitt
  • 17,193
  • 6
  • 67
  • 97