original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: apply given xml data as object data
  
  @param $data string
  @return $this
docstring_tokens: apply given xml data as object data