GRAYBYTE WORDPRESS FILE MANAGER3886

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
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/ruby26/lib64/ruby/2.6.0/rexml/parsers/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby26/lib64/ruby/2.6.0/rexml/parsers//ultralightparser.rb
# frozen_string_literal: false
require_relative 'streamparser'
require_relative '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, :start_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:47:32
root / linksafe
0755
baseparser.rb
24.908 KB
April 12 2022 11:50:11
root / linksafe
0644
lightparser.rb
1.542 KB
April 12 2022 11:50:11
root / linksafe
0644
pullparser.rb
5.121 KB
April 12 2022 11:50:11
root / linksafe
0644
sax2parser.rb
9.08 KB
April 12 2022 11:50:11
root / linksafe
0644
streamparser.rb
1.921 KB
April 12 2022 11:50:11
root / linksafe
0644
treeparser.rb
3.494 KB
April 12 2022 11:50:11
root / linksafe
0644
ultralightparser.rb
1.444 KB
April 12 2022 11:50:11
root / linksafe
0644
xpathparser.rb
18.456 KB
April 12 2022 11:50:11
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF