public function appendSimpleXml($data)
    {
        $loadedXml      = simplexml_load_string($data);
        $jsonXml        = json_encode($loadedXml);
        $jsonData       = json_decode($jsonXml, true);

        $this->appendArray($jsonData);

        if ($this->_objectCreation) {
            return $this->_afterAppendDataToNewObject();
        }
        return $this;
    }
public function appendSimpleXml($data)
    {
        $loadedXml      = simplexml_load_string($data);
        $jsonXml        = json_encode($loadedXml);
        $jsonData       = json_decode($jsonXml, true);

        $this->appendArray($jsonData);

        if ($this->_objectCreation) {
            return $this->_afterAppendDataToNewObject();
        }
        return $this;
    }
public function appendSimpleXml ( $ data ) { $ loadedXml = simplexml_load_string ( $ data ) ; $ jsonXml = json_encode ( $ loadedXml ) ; $ jsonData = json_decode ( $ jsonXml , true ) ; $ this -> appendArray ( $ jsonData ) ; if ( $ this -> _objectCreation ) { return $ this -> _afterAppendDataToNewObject ( ) ; } return $ this ; }
apply given xml data as object data

@param $data string
@return $this
apply given xml data as object data