registerXPathNamespace('enc', 'http://www.w3.org/2001/04/xmlenc#'); list(,$cipherdata) = $this->xpath("//enc:CipherData"); if(!($cipherdata instanceof Zend_InfoCard_Xml_Element)) { throw new Zend_InfoCard_Xml_Exception("Unable to find the enc:CipherData block"); } $cipherdata->registerXPathNamespace('enc', 'http://www.w3.org/2001/04/xmlenc#'); list(,$ciphervalue) = $cipherdata->xpath("//enc:CipherValue"); if(!($ciphervalue instanceof Zend_InfoCard_Xml_Element)) { throw new Zend_InfoCard_Xml_Exception("Unable to fidn the enc:CipherValue block"); } return (string)$ciphervalue; } }