$29 GRAYBYTE WORDPRESS FILE MANAGER $34

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

/opt/alt/ruby18/lib64/ruby/1.8/rss/

HOME
Current File : /opt/alt/ruby18/lib64/ruby/1.8/rss//xmlparser.rb
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)
      Error = ::XMLParserError
    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.48 PM
root / root
0755
content
--
3 Mar 2024 10.48 PM
root / linksafe
0755
dublincore
--
3 Mar 2024 10.48 PM
root / linksafe
0755
maker
--
3 Mar 2024 10.48 PM
root / linksafe
0755
0.9.rb
9.483 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
1.0.rb
8.614 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
2.0.rb
2.313 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
atom.rb
18.879 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
content.rb
0.753 KB
30 Nov 2007 12.56 PM
root / linksafe
0644
converter.rb
3.715 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
dublincore.rb
4.232 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
image.rb
4.617 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
itunes.rb
9.955 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
maker.rb
0.932 KB
11 Feb 2008 8.26 AM
root / linksafe
0644
parser.rb
14.648 KB
28 Dec 2007 4.23 AM
root / linksafe
0644
rexmlparser.rb
1.11 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
rss.rb
33.063 KB
11 Feb 2008 8.26 AM
root / linksafe
0644
slash.rb
1.216 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
syndication.rb
1.762 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
taxonomy.rb
3.03 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
trackback.rb
6.673 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
utils.rb
2.62 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
xml-stylesheet.rb
2.136 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
xml.rb
1.468 KB
21 Oct 2007 12.19 PM
root / linksafe
0644
xmlparser.rb
1.572 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
xmlscanner.rb
2.121 KB
12 Feb 2007 11.01 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF