dtd validation, json and xml