public static String prettyXml(String xmlContent) throws IOException, TransformerFactoryConfigurationError, TransformerException, SAXException, ParserConfigurationException {
  Document doc=createDocumentFromXml(xmlContent);
  return prettyXml(doc);
}

public static String prettyXml ( String xmlContent ) throws IOException , TransformerFactoryConfigurationError , TransformerException , SAXException , ParserConfigurationException { Document doc = createDocumentFromXml ( xmlContent ) ; return prettyXml ( doc ) ; }
convert the xmlstring to pretty well formatted xmlstring
