private String createXmlChunck(String elementName, String xmlAsString) { StringBuilder elementBuilder = new StringBuilder(); elementBuilder.append(XmlUtilities.createStartElement(elementName)); xmlAsString = XmlUtilities.stripXmlHeader(xmlAsString); elementBuilder.append(xmlAsString); elementBuilder.append(XmlUtilities.createEndTag(elementName)); return elementBuilder.toString(); }
private String stripRootElement(String xml, String elementNameToStrip) { return XmlUtilities.stripXmlStartEndElements(xml, elementNameToStrip); }