Rexml :attlistdecl

I’d like to parse the href attribute value from a simple table…


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,
puts “url=” << attribute_value;

any suggestions?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs