loadXML($strXMLData); if(method_exists($dom, 'C14N')) { return $dom->C14N(true, false); } #require_once 'Zend/InfoCard/Xml/Security/Transform/Exception.php'; throw new Zend_InfoCard_Xml_Security_Transform_Exception("This transform requires the C14N() method to exist in the DOM extension"); } }