NodeInfo start;
if (source instanceof DOMSource || source instanceof NodeInfo) {
start = config.unravel(source);
if (stripper != null) {
DocumentInfo docInfo = start.getDocumentRoot();
StrippedDocument strippedDoc = new StrippedDocument(docInfo, stripper);
start = strippedDoc.wrap(start);
}
} else {
// we have a SAXSource or StreamSource
Builder b;