summaryrefslogtreecommitdiff
path: root/lib/rss/xmlparser.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-07 03:36:38 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-07 03:36:38 +0000
commit8dfa6fb0a80d633d71987f06462823ca13b67be8 (patch)
treeccf92cc3af99d21f06a5a9c32d02e247abe74592 /lib/rss/xmlparser.rb
parent4ded52b623ebd1b3de12db82f8b54cc156c1fd28 (diff)
* lib/rss/parser.rb, lib/rss/1.0.rb: accepted rdf:resource or
resource attribute in rdf:li. * test/rss/test_parser.rb: added test for above change. * lib/rss/dublincore.rb: reverted style. * lib/rss/xmlparser.rb: normalized XMLParser class hierarchy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/xmlparser.rb')
-rw-r--r--lib/rss/xmlparser.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rss/xmlparser.rb b/lib/rss/xmlparser.rb
index 355a428d2d..7be0dc9a11 100644
--- a/lib/rss/xmlparser.rb
+++ b/lib/rss/xmlparser.rb
@@ -17,6 +17,14 @@ rescue LoadError
end
end
+module XML
+ class Parser
+ unless defined?(Error)
+ Error = ::XMLParserError
+ end
+ end
+end
+
module RSS
class REXMLLikeXMLParser < ::XML::Parser