OMElement rootElement;
System.out.println("XML File:" + filePath);
XMLInputFactory factory = XMLInputFactory.newInstance();
// factory.setProperty("report-cdata-event", Boolean.TRUE);
StAXOMBuilder staxOMBuilder = OMXMLBuilderFactory.
createStAXOMBuilder(OMAbstractFactory.getOMFactory(),
factory.createXMLStreamReader(
new FileInputStream(filePath)));
rootElement = staxOMBuilder.getDocumentElement();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
((OMDocument)rootElement.getParent()).serialize(baos);
InputSource resultXML = new InputSource(new InputStreamReader(