Generic Table Import DTD
The table import mapping XML definition is validated against this DTD:
<!DOCTYPE table-config [
<!ELEMENT delete ( delete-field+ ) >
<!ATTLIST delete type (PRE|POSTI) "PRE" >
<!ELEMENT delete-field ( reference? ) >
<!ATTLIST delete-field db-field CDATA #REQUIRED >
<!ATTLIST delete-field condition
(EQUALS|LESS|GREATER|LESS_EQUALS|GREATER_EQUALS) "EQUALS" >
<!ATTLIST delete-field date-format CDATA #IMPLIED >
<!ATTLIST delete-field default-value CDATA #IMPLIED >
<!ATTLIST delete-field offset NMTOKEN #IMPLIED >
<!ATTLIST delete-field day (SAT|SUN|MON|TUES|WED|THURS|FRI) #IMPLIED >
<!ATTLIST field date-format CDATA #IMPLIED >
<!ATTLIST field db-field CDATA #REQUIRED >
<!ATTLIST field default-value CDATA #IMPLIED >
<!ATTLIST field index NMTOKEN #REQUIRED >
<!ELEMENT deletes ( delete+ ) >
<!ELEMENT field ( reference?, mapping? ) >
<!ATTLIST field date-format CDATA #IMPLIED >
<!ATTLIST field db-field CDATA #REQUIRED >
<!ATTLIST field default-value CDATA #IMPLIED >
<!ATTLIST field index NMTOKEN #REQUIRED >
<!ELEMENT fields ( field+ ) >
<!ELEMENT mapping EMPTY >
<!ATTLIST mapping name CDATA #REQUIRED >
<!ELEMENT reference EMPTY >
<!ATTLIST reference resolve-to-field NMTOKEN #REQUIRED >
<!ATTLIST reference supplied-value NMTOKEN #REQUIRED >
<!ATTLIST reference table-name NMTOKEN #REQUIRED >
<!ELEMENT table ( deletes?, fields ) >
<!ATTLIST table name NMTOKEN #REQUIRED >
<!ATTLIST table transaction-type (INSERT_UPDATE|INSERT|UPDATE|DELETE)
"INSERT_UPDATE" >
<!ATTLIST table key-fields CDATA #IMPLIED >
<!ATTLIST table primary-key NMTOKEN #REQUIRED >
<!ELEMENT table-config ( table ) >
]>