Hallo!
Okay, nobody has answered, so I think nobody made this. I made an example of a DTD, maybe someone can give some suggestions:
<!ELEMENT PDContainer <!ATTLIST PDContainer type ( h_map | h_multimap | h_set | h_multiset | h_vector | h_list | h_deque | h_queue | h_stack ) #REQUIRED
<!ELEMENT element (atom)+> <!ELEMENT atom (#PCDATA) <!ATTLIST atom type (float | symbol) #REQUIRED
so it could look like this:
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE PDContainer SYSTEM "something.dtd"> <PDContainer type="h_list"> <element> <atom type="float"> 34 </atom> <atom type="symbol"> sdfkjafeh </symbol> </element> <element> <atom type="symbol"> bla </symbol> <atom type="float"> -234 </float <atom type="float"> 43 </float> </element> </PDContainer>
Thanks, LG Georg