Ignas Kukenys wrote:
> Hi. I am using REXML package that comes with ruby and I get these
> annoying warning messages:

I fixed this by the following change in lib/ruby/site_ruby/1.8/rexml/:

diff -u2 -r /tmp/rexml/doctype.rb ./doctype.rb
--- /tmp/rexml/doctype.rb	2004-02-25 13:56:43.683123300 +1100
+++ ./doctype.rb	2004-02-25 13:51:43.513034900 +1100
@@ -194,5 +194,5 @@
  					raise ParseException.new( "Invalid end of DOCTYPE declaration 
\"#{source.buffer}\"", source ) if md.nil?
  				end
-				source.match(/\s*]\s*>/um, true)
+				source.match(/\s*\]\s*>/um, true)
  			rescue ParseException
  				raise
diff -u2 -r /tmp/rexml/entity.rb ./entity.rb
--- /tmp/rexml/entity.rb	2004-02-25 13:55:33.167949600 +1100
+++ ./entity.rb	2004-02-25 13:53:40.559295300 +1100
@@ -8,5 +8,5 @@
  	class Entity < Child
  		include XMLTokens
-		PUBIDCHAR = "\x20\x0D\x0Aa-zA-Z0-9-()+,./:=?;!*@$_%#"
+		PUBIDCHAR = "-\x20\x0D\x0Aa-zA-Z0-9()+,./:=?;!*@$_%#"
  		SYSTEMLITERAL = %Q{((?:"[^"]*")|(?:'[^']*'))}
  		PUBIDLITERAL = Q{("[#{PUBIDCHAR}']*"|'[#{PUBIDCHAR}]*')}