DbUnit dtd error: The dataset element type declaration must end with ">"
I am working with dbUnit for the first time. I took a sample dtd from here :
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT dataset (table+) | ANY>
<!ELEMENT table (column*, row*)>
<!ATTLIST table
name CDATA #REQUIRED
>
<!ELEMENT column (#PCDATA)>
<!ELEMENT row (value | null | none)*>
<!ELEMENT value (#PCDATA)>
<!ELEMENT null EMPTY>
I get the following error:
org.dbunit.dataset.DataSetException: Line 2: The data item type declaration "dataset" must end with ">".
What does it mean? I am confused because I took the original dtd, and secondly, there is a ">" at the end of the dataset definition.
Thank you for your help!
Change the first line to:
<! ELEMENT dataset (table + | ANY)>
will do the correct syntax.
However, the model may be the same:
<! ELEMENT dataset ANY>
"ANY" ( , . http://www.w3.org/TR/xml/#sec-logical-struct)