code: public static String format(String xml) throws CmsXmlException {
  
          return CmsXmlUtils.marshal((Node)CmsXmlUtils.unmarshalHelper(xml, null), CmsEncoder.ENCODING_UTF_8);
      }
docs: Unmarshals (reads) an XML string into a new document.<p>
  
  @param xml the XML code to unmarshal
  
  @return the generated document
  
  @throws CmsXmlException if something goes wrong