You don't need to call any method for doing the validation -- the parse(...) method does that behind the scenes if you've configured the parser to do validation. You can use this sample as a base for your DTD validation. You basically need to just drop the ".../validation/schema" feature.