Forum: Ruby rexml :attlistdecl

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Michael B. (Guest)
on 2006-04-10 20:07
I'd like to parse the href attribute value from a simple table...

<tr><td><a href="url">text

parser.listen( :characters, %w{ td, a }  ) {|text|
  puts "text=" << text;
}

the above works fine...

although the below does not work...

parser.listen( :attlistdecl, %w{ td, a }  ) {|attribute_name,
attribute_value|
  puts "url=" << attribute_value;
}

any suggestions?
This topic is locked and can not be replied to.