added dtd validation