OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
ruby
/
2.5.0
/
rexml
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
attlistdecl.rb
1.92 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
attribute.rb
5.53 KB
07/22/2016 01:39:49 AM
rw-r--r--
📄
cdata.rb
1.58 KB
12/12/2017 11:56:25 AM
rw-r--r--
📄
child.rb
2.66 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
comment.rb
2.12 KB
12/12/2017 11:56:25 AM
rw-r--r--
📄
doctype.rb
7.64 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
document.rb
9.51 KB
12/16/2015 05:07:31 AM
rw-r--r--
📁
dtd
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
element.rb
44.38 KB
12/12/2017 11:56:25 AM
rw-r--r--
📄
encoding.rb
1.16 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
entity.rb
5.39 KB
11/02/2017 08:06:38 PM
rw-r--r--
📁
formatters
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
functions.rb
11.9 KB
08/13/2017 12:14:24 PM
rw-r--r--
📄
instruction.rb
2.05 KB
12/12/2017 11:56:25 AM
rw-r--r--
📁
light
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
namespace.rb
1.12 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
node.rb
2.17 KB
12/12/2017 11:56:25 AM
rw-r--r--
📄
output.rb
550 bytes
12/16/2015 05:07:31 AM
rw-r--r--
📄
parent.rb
4.27 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
parseexception.rb
1.25 KB
12/16/2015 05:07:31 AM
rw-r--r--
📁
parsers
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
quickpath.rb
9.12 KB
05/17/2016 01:15:57 PM
rw-r--r--
📄
rexml.rb
1.32 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
sax2listener.rb
3.61 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
security.rb
824 bytes
12/16/2015 05:07:31 AM
rw-r--r--
📄
source.rb
7.64 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
streamlistener.rb
3.84 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
syncenumerator.rb
716 bytes
12/16/2015 05:07:31 AM
rw-r--r--
📄
text.rb
13.78 KB
12/12/2017 11:56:25 AM
rw-r--r--
📄
undefinednamespaceexception.rb
241 bytes
12/16/2015 05:07:31 AM
rw-r--r--
📁
validation
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
xmldecl.rb
2.71 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
xmltokens.rb
2.32 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
xpath.rb
3.34 KB
12/16/2015 05:07:31 AM
rw-r--r--
📄
xpath_parser.rb
20.44 KB
05/17/2016 01:15:57 PM
rw-r--r--
Editing: attlistdecl.rb
Close
# frozen_string_literal: false #vim:ts=2 sw=2 noexpandtab: require 'rexml/child' require 'rexml/source' module REXML # This class needs: # * Documentation # * Work! Not all types of attlists are intelligently parsed, so we just # spew back out what we get in. This works, but it would be better if # we formatted the output ourselves. # # AttlistDecls provide *just* enough support to allow namespace # declarations. If you need some sort of generalized support, or have an # interesting idea about how to map the hideous, terrible design of DTD # AttlistDecls onto an intuitive Ruby interface, let me know. I'm desperate # for anything to make DTDs more palateable. class AttlistDecl < Child include Enumerable # What is this? Got me. attr_reader :element_name # Create an AttlistDecl, pulling the information from a Source. Notice # that this isn't very convenient; to create an AttlistDecl, you basically # have to format it yourself, and then have the initializer parse it. # Sorry, but for the foreseeable future, DTD support in REXML is pretty # weak on convenience. Have I mentioned how much I hate DTDs? def initialize(source) super() if (source.kind_of? Array) @element_name, @pairs, @contents = *source end end # Access the attlist attribute/value pairs. # value = attlist_decl[ attribute_name ] def [](key) @pairs[key] end # Whether an attlist declaration includes the given attribute definition # if attlist_decl.include? "xmlns:foobar" def include?(key) @pairs.keys.include? key end # Iterate over the key/value pairs: # attlist_decl.each { |attribute_name, attribute_value| ... } def each(&block) @pairs.each(&block) end # Write out exactly what we got in. def write out, indent=-1 out << @contents end def node_type :attlistdecl end end end