public static Element parseXML(String xml) throws DSTException {
  try {
    Document doc=XMLUtils.toDOMDocument(xml,debug);
    return doc.getDocumentElement();
  }
 catch (  Exception ex) {
    debug.error("DSTUtils.parseXML: Parsing error.",ex);
    throw new DSTException(ex);
  }
}

public static Element parseXML ( String xml ) throws DSTException { try { Document doc = XMLUtils . toDOMDocument ( xml , debug ) ; return doc . getDocumentElement ( ) ; } catch ( Exception ex ) { debug . error ( "DSTUtils.parseXML: Parsing error." , ex ) ; throw new DSTException ( ex ) ; } }
parses an xml input string .
