docElement = new FuzzyXMLElementImpl(null, "document", firstRoot.getOffset(), lastRoot.getOffset() + lastRoot.getLength() - firstRoot.getOffset(), 0);
for (FuzzyXMLNode root : _roots) {
((FuzzyXMLElementImpl) docElement).appendChildWithNoCheck(root);
}
}
FuzzyXMLDocumentImpl doc = new FuzzyXMLDocumentImpl(docElement, _docType);
doc.setHTML(_isHTML);
return doc;
}