/** * This method is used primarily at the client side to reconstruct a * <code>SessionResponse</code> object based on the XML document received * from server. The DTD of this XML document is described above. * * @param xml The <code>SessionResponse</code> XML document. */ public static function parseXML($xml) { $parser = new SessionResponseParser($xml); return $parser->parseXML(); }