xml.setResinInclude(_allowResinInclude);
xml.setFilename(filename);
if (schema != null) {
Verifier verifier = schema.newVerifier();
VerifierFilter filter = verifier.getVerifierFilter();
filter.setParent(xml);
filter.setContentHandler(builder);
filter.setErrorHandler(builder);
filter.parse(in);
}
else {
xml.setContentHandler(builder);
xml.parse(in);
}