String outerXml = "<DOC a=\"b\">" + xml + "</DOC>";
RawDocumentImpl doc = RawDocumentImpl.PROVIDER.parse(outerXml);
Element element = doc.getDocumentElement();
int size = element.calculateSize();
check(size - 2, xml, XmlStringBuilder.createChildren(doc, element));
check(size, outerXml, XmlStringBuilder.createNode(doc, element));
} catch (Exception e) {