hash_to_array (XmlSimple)

    # File lib/xmlsimple.rb, line 862
      def hash_to_array(parent, hashref)
        arrayref = []
        hashref.each { |key, value|
          return hashref unless value.instance_of?(Hash)

          if @options['keyattr'].instance_of?(Hash)
            return hashref unless @options['keyattr'].has_key?(parent)
            arrayref << { @options['keyattr'][parent][0] => key }.update(value)
          else
            arrayref << { @options['keyattr'][0] => key }.update(value)
          end
        }
        arrayref
      end