OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
ruby
/
2.5.0
/
rss
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
0.9.rb
10.61 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
1.0.rb
9.64 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
2.0.rb
3.43 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
atom.rb
28.9 KB
01/26/2017 12:47:51 PM
rw-r--r--
📁
content
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
content.rb
890 bytes
12/16/2015 05:07:31 AM
rw-r--r--
📄
converter.rb
3.9 KB
12/16/2015 05:07:31 AM
rw-r--r--
📁
dublincore
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
dublincore.rb
4.3 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
image.rb
4.79 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
itunes.rb
10.07 KB
10/22/2017 04:03:57 PM
rw-r--r--
📁
maker
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
maker.rb
1.78 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
parser.rb
15.61 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
rexmlparser.rb
995 bytes
12/16/2015 05:07:31 AM
rw-r--r--
📄
rss.rb
34.83 KB
12/12/2017 11:56:25 AM
rw-r--r--
📄
slash.rb
1.33 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
syndication.rb
1.88 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
taxonomy.rb
3.19 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
trackback.rb
6.72 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
utils.rb
5.13 KB
10/22/2017 04:03:57 PM
rw-r--r--
📄
xml-stylesheet.rb
2.16 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
xml.rb
1.5 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
xmlparser.rb
1.65 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
xmlscanner.rb
2.13 KB
12/16/2015 05:07:31 AM
rw-r--r--
Editing: xml.rb
Close
# frozen_string_literal: false require "rss/utils" module RSS module XML class Element include Enumerable attr_reader :name, :prefix, :uri, :attributes, :children def initialize(name, prefix=nil, uri=nil, attributes={}, children=[]) @name = name @prefix = prefix @uri = uri @attributes = attributes if children.is_a?(String) or !children.respond_to?(:each) @children = [children] else @children = children end end def [](name) @attributes[name] end def []=(name, value) @attributes[name] = value end def <<(child) @children << child end def each(&block) @children.each(&block) end def ==(other) other.kind_of?(self.class) and @name == other.name and @uri == other.uri and @attributes == other.attributes and @children == other.children end def to_s rv = "<#{full_name}" attributes.each do |key, value| rv << " #{Utils.html_escape(key)}=\"#{Utils.html_escape(value)}\"" end if children.empty? rv << "/>" else rv << ">" children.each do |child| rv << child.to_s end rv << "</#{full_name}>" end rv end def full_name if @prefix "#{@prefix}:#{@name}" else @name end end end end end