original_string: protected function renderXml($data)
      {
          $xml = $this->arrayToXml($data);
  
          $dom = new \DOMDocument('1.0');
          $dom->preserveWhiteSpace = false;
          $dom->formatOutput = $this->pretty;
          $dom->loadXML($xml->asXML());
  
          return $dom->saveXML();
      }
code: protected function renderXml($data)
      {
          $xml = $this->arrayToXml($data);
  
          $dom = new \DOMDocument('1.0');
          $dom->preserveWhiteSpace = false;
          $dom->formatOutput = $this->pretty;
          $dom->loadXML($xml->asXML());
  
          return $dom->saveXML();
      }
code_tokens: protected function renderXml ( $ data ) { $ xml = $ this -> arrayToXml ( $ data ) ; $ dom = new \ DOMDocument ( '1.0' ) ; $ dom -> preserveWhiteSpace = false ; $ dom -> formatOutput = $ this -> pretty ; $ dom -> loadXML ( $ xml -> asXML ( ) ) ; return $ dom -> saveXML ( ) ; }
docstring: Render Array as XML
  
  @return string
docstring_tokens: Render Array as XML