$95 GRAYBYTE WORDPRESS FILE MANAGER $71

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby27/share/ruby/rss/

HOME
Current File : /opt/alt/ruby27/share/ruby/rss//xmlparser.rb
# frozen_string_literal: false
begin
  require "xml/parser"
rescue LoadError
  require "xmlparser"
end

begin
  require "xml/encoding-ja"
rescue LoadError
  require "xmlencoding-ja"
  if defined?(Kconv)
    module XMLEncoding_ja
      class SJISHandler
        include Kconv
      end
    end
  end
end

module XML
  class Parser
    unless defined?(Error)
      # This error is legacy, so we just set it to the new one
      Error = ::XMLParserError # :nodoc:
    end
  end
end

module RSS

  class REXMLLikeXMLParser < ::XML::Parser

    include ::XML::Encoding_ja

    def listener=(listener)
      @listener = listener
    end

    def startElement(name, attrs)
      @listener.tag_start(name, attrs)
    end

    def endElement(name)
      @listener.tag_end(name)
    end

    def character(data)
      @listener.text(data)
    end

    def xmlDecl(version, encoding, standalone)
      @listener.xmldecl(version, encoding, standalone == 1)
    end

    def processingInstruction(target, content)
      @listener.instruction(target, content)
    end

  end

  class XMLParserParser < BaseParser

    class << self
      def listener
        XMLParserListener
      end
    end

    private
    def _parse
      begin
        parser = REXMLLikeXMLParser.new
        parser.listener = @listener
        parser.parse(@rss)
      rescue ::XML::Parser::Error => e
        raise NotWellFormedError.new(parser.line){e.message}
      end
    end

  end

  class XMLParserListener < BaseListener

    include ListenerMixin

    def xmldecl(version, encoding, standalone)
      super
      # Encoding is converted to UTF-8 when XMLParser parses XML.
      @encoding = 'UTF-8'
    end

  end

end


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.47 PM
root / linksafe
0755
content
--
3 Mar 2024 10.47 PM
root / linksafe
0755
dublincore
--
3 Mar 2024 10.47 PM
root / linksafe
0755
maker
--
3 Mar 2024 10.47 PM
root / linksafe
0755
0.9.rb
10.615 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
1.0.rb
9.641 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
2.0.rb
3.428 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
atom.rb
28.907 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
content.rb
0.874 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
converter.rb
3.902 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
dublincore.rb
4.313 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
image.rb
4.798 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
itunes.rb
10.482 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
maker.rb
1.845 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
parser.rb
16.188 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
rexmlparser.rb
0.972 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
rss.rb
34.789 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
slash.rb
1.328 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
syndication.rb
1.883 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
taxonomy.rb
3.199 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
trackback.rb
6.716 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
utils.rb
5.134 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
version.rb
0.064 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
xml-stylesheet.rb
2.163 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
xml.rb
1.503 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
xmlparser.rb
1.65 KB
30 Mar 2023 12.34 PM
root / linksafe
0644
xmlscanner.rb
2.134 KB
30 Mar 2023 12.34 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF