Hmmm ... what happens if you comment out the validate call?
In reply to Re^3: LibXML and parsing file with DTD by derby in thread LibXML and parsing file with DTD by AWallBuilder