Can anyone help me write a Datalog program which is an equivalent of a given DTD.
DTD :
<!DOCTYPE abc[
<!ELEMENT abc (xyz*|def+)>
<!ELEMENT xyz (def?)>
<!ELEMENT def (#PCDATA)>
]>
Also are there any specific rules that we need to follow while converting a dtd to a corresponding datalog program ?