original_string: protected function fillXml(\SimpleXMLElement $element, $data)
      {
          foreach ($data as $key => $value) {
              if (is_array($value) || is_object($value)) {
                  if (!is_numeric($key)) {
                      $child = $element->addChild($key);
                  } else {
                      $child = $element;
                  }
                  
                  $this->fillXml($child, $value);
              } else {
                  $element->addChild($key, $value);
              }
          }
      }
code: protected function fillXml(\SimpleXMLElement $element, $data)
      {
          foreach ($data as $key => $value) {
              if (is_array($value) || is_object($value)) {
                  if (!is_numeric($key)) {
                      $child = $element->addChild($key);
                  } else {
                      $child = $element;
                  }
                  
                  $this->fillXml($child, $value);
              } else {
                  $element->addChild($key, $value);
              }
          }
      }
code_tokens: protected function fillXml ( \ SimpleXMLElement $ element , $ data ) { foreach ( $ data as $ key => $ value ) { if ( is_array ( $ value ) || is_object ( $ value ) ) { if ( ! is_numeric ( $ key ) ) { $ child = $ element -> addChild ( $ key ) ; } else { $ child = $ element ; } $ this -> fillXml ( $ child , $ value ) ; } else { $ element -> addChild ( $ key , $ value ) ; } } }
docstring: Builds a xml string out of the given array
  
  @access public
  @param \SimpleXMLElement $element
  @param array|object $data
docstring_tokens: Builds a xml string out of the given array