Java code for validating xml against dtd