I seem to have some personal confusion with how to correctly utilize the
rexml/dtd library. I am using ruby version 1.8.6 and when I orginally
to use the code I received some unknown method errors. I modified the
in the case statement contained in dtd.rb from the notation
to when ElementDecl::PATTERN_RE
I no longer received these errors. However, I am now receiving the
uninitialized constant REXML::DTD::EntityDecl::PATTERN_RE
When I look at the code in entitydecl.rb I see the following line;
md = source.match( PATTERN_RE, true )
However PATTERN_RE is not declared or intialized in the entitydecl.rb
Am I implementing the library wrong or is this code still bugged?
Any help is much appreciated.
Below is a snapshot of how I am trying to use this library.
dtdarg = ARGV
path = Pathname::new(dtdfile)
if path.relative? then
dtdfile = File::expand_path(dtdfile)
dtddata = REXML::DTD::Parser::parse(dtdfile)