// Settings we always need:
cfg.doSupportDTDs(true);
cfg.doValidateWithDTD(false);
// Then variable ones we got settings for:
cfg.doSupportNamespaces(ns);
cfg.doCoalesceText(coalescing);
cfg.doReplaceEntityRefs(autoEntity);
/* How many random permutations do we want to try?
*/