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;

    }
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;

    }
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 ; }
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
Recurse through non scalar data serializing it