GRAYBYTE WORDPRESS FILE MANAGER3511

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby20/lib64/ruby/2.0.0/rexml/parsers/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby20/lib64/ruby/2.0.0/rexml/parsers//ultralightparser.rb
require 'rexml/parsers/streamparser'
require 'rexml/parsers/baseparser'

module REXML
  module Parsers
    class UltraLightParser
      def initialize stream
        @stream = stream
        @parser = REXML::Parsers::BaseParser.new( stream )
      end

      def add_listener( listener )
        @parser.add_listener( listener )
      end

      def rewind
        @stream.rewind
        @parser.stream = @stream
      end

      def parse
        root = context = []
        while true
          event = @parser.pull
          case event[0]
          when :end_document
            break
          when :end_doctype
            context = context[1]
          when :start_element, :doctype
            context << event
            event[1,0] = [context]
            context = event
          when :end_element
            context = context[1]
          else
            context << event
          end
        end
        root
      end
    end

    # An element is an array.  The array contains:
    #  0                        The parent element
    #  1                        The tag name
    #  2                        A hash of attributes
    #  3..-1    The child elements
    # An element is an array of size > 3
    # Text is a String
    # PIs are [ :processing_instruction, target, data ]
    # Comments are [ :comment, data ]
    # DocTypes are DocType structs
    # The root is an array with XMLDecls, Text, DocType, Array, Text
  end
end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:43:33
root / linksafe
0755
baseparser.rb
19.518 KB
October 28 2012 12:42:37
root / linksafe
0644
lightparser.rb
1.516 KB
May 19 2011 00:07:25
root / linksafe
0644
pullparser.rb
5.084 KB
October 02 2009 10:45:39
root / linksafe
0644
sax2parser.rb
8.581 KB
May 19 2011 00:07:25
root / linksafe
0644
streamparser.rb
1.382 KB
October 02 2009 10:45:39
root / linksafe
0644
treeparser.rb
3.481 KB
October 02 2009 10:45:39
root / linksafe
0644
ultralightparser.rb
1.418 KB
May 19 2011 00:07:25
root / linksafe
0644
xpathparser.rb
19.392 KB
June 11 2011 07:05:42
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF