I started off using an XML file and a parser as a convenient way to store my data
I want to use DTD to check the structure of the xml files when they arrive.
You can use ANY keyword if you don't bother too much about validity:
ANY
I have faced a similar problem here, this two cases may appear:
The only solution I found was this:
Maybe there are a better solution, but it works fine for my particular problem.