I read the pdf and this is very close to what i've done in some past projects which consisted in writing DTDs for different XML files with different structures.
If you give me this project by friday, i can finish it for you by monday. Don't hesitate contacting me if you have any questions.
Regards.