original_string: protected function parseNonScalarData($data, $fallbackName = null)
      {
          $xml = '';
          if (!$fallbackName) {
              $fallbackName = $this->defaultNodeName;
          }
          foreach ($data as $property => $value) {
              // Clear non-alphanumeric characters
              $property = preg_replace('/\W/', '', $property);
  
              // If numeric we'll stick a character in front of it, a bit hack but should be valid
              if (is_numeric($property)) {
                  $property = $fallbackName;
              }
              $xml .= $this->partialFormat($value, $property);
          }
          return $xml;
  
      }
code: protected function parseNonScalarData($data, $fallbackName = null)
      {
          $xml = '';
          if (!$fallbackName) {
              $fallbackName = $this->defaultNodeName;
          }
          foreach ($data as $property => $value) {
              // Clear non-alphanumeric characters
              $property = preg_replace('/\W/', '', $property);
  
              // If numeric we'll stick a character in front of it, a bit hack but should be valid
              if (is_numeric($property)) {
                  $property = $fallbackName;
              }
              $xml .= $this->partialFormat($value, $property);
          }
          return $xml;
  
      }
code_tokens: protected function parseNonScalarData ( $ data , $ fallbackName = null ) { $ xml = '' ; if ( ! $ fallbackName ) { $ fallbackName = $ this -> defaultNodeName ; } foreach ( $ data as $ property => $ value ) { // Clear non-alphanumeric characters $ property = preg_replace ( '/\W/' , '' , $ property ) ; // If numeric we'll stick a character in front of it, a bit hack but should be valid if ( is_numeric ( $ property ) ) { $ property = $ fallbackName ; } $ xml .= $ this -> partialFormat ( $ value , $ property ) ; } return $ xml ; }
docstring: Recurse through non scalar data, serializing it
  @param array|object $data
  @param string|null $fallbackName The name to use for an element in the event it doesn't have one
  @return string
docstring_tokens: Recurse through non scalar data serializing it