final public function deserializeXml($xmlstr)
    {
        try {
            $element = new \SimpleXMLElement($xmlstr);
        } catch (\Exception $ex) {
            return false;
        }
        foreach ($element as $name => $value) {
            $this->$name = stripslashes(urldecode(htmlspecialchars_decode($value)));
        }

        return true;
    }
final public function deserializeXml($xmlstr)
    {
        try {
            $element = new \SimpleXMLElement($xmlstr);
        } catch (\Exception $ex) {
            return false;
        }
        foreach ($element as $name => $value) {
            $this->$name = stripslashes(urldecode(htmlspecialchars_decode($value)));
        }

        return true;
    }
final public function deserializeXml ( $ xmlstr ) { try { $ element = new \ SimpleXMLElement ( $ xmlstr ) ; } catch ( \ Exception $ ex ) { return false ; } foreach ( $ element as $ name => $ value ) { $ this -> $ name = stripslashes ( urldecode ( htmlspecialchars_decode ( $ value ) ) ) ; } return true ; }
The deserialize method is called during xml parsing,
create an object of the xml received based on the entity
called

@param string $xmlstr XML string to convert on object

@throws Exception If xml data could not be parsed

@return bool
The deserialize method is called during xml parsing create an object of the xml received based on the entity called