extension/ezjscore/classes/ezjscajaxcontent.php
protected static function xmlWrite( XMLWriter $xml, $hash, $childName = 'child' )
    {
        foreach( $hash as $key => $value )
        {
            if( is_array( $value ) )
            {
               if ( is_numeric( $key ) )
                   $xml->startElement( $childName );
               else
                   $xml->startElement( $key );
                self::xmlWrite( $xml, $value );
                $xml->endElement();
                continue;
            }
            if ( is_numeric( $key ) )
            {
                $xml->writeElement( $childName, $value );
            }
            else
            {
                $xml->writeElement( $key, $value );
            }
        }
    }
protected static function xmlWrite( XMLWriter $xml, $hash, $childName = 'child' )
    {
        foreach( $hash as $key => $value )
        {
            if( is_array( $value ) )
            {
               if ( is_numeric( $key ) )
                   $xml->startElement( $childName );
               else
                   $xml->startElement( $key );
                self::xmlWrite( $xml, $value );
                $xml->endElement();
                continue;
            }
            if ( is_numeric( $key ) )
            {
                $xml->writeElement( $childName, $value );
            }
            else
            {
                $xml->writeElement( $key, $value );
            }
        }
    }
protected static function xmlWrite ( XMLWriter $ xml , $ hash , $ childName = 'child' ) { foreach ( $ hash as $ key => $ value ) { if ( is_array ( $ value ) ) { if ( is_numeric ( $ key ) ) $ xml -> startElement ( $ childName ) ; else $ xml -> startElement ( $ key ) ; self :: xmlWrite ( $ xml , $ value ) ; $ xml -> endElement ( ) ; continue ; } if ( is_numeric ( $ key ) ) { $ xml -> writeElement ( $ childName , $ value ) ; } else { $ xml -> writeElement ( $ key , $ value ) ; } } }
Recursive xmlWriter function called by xmlEncode

@param XMLWriter $xml
@param mixed $hash
@param string $childName
Recursive xmlWriter function called by xmlEncode