From: Chris Gallagher Date: 2006-11-24T19:42:31+09:00 Subject: Removing a tag from an xml document Hi, Im trying to convert part of a HTML document to REXML and its throwing it back at me due to the fact that the html document isnt valid XML due to one closing tag which doesnt have an opener. heres the xml:
Project Status (sinc e) Last failu re Last su ccessful Label
henry- mobile-server ? (10:05) 09:31 build.19
henry-mobile-server-nightly-build ? (10:05)
What i need to do is to strip out the final "" tag from the file. The html is being fethced using net/http and then that part of the page is being extracted from the full page with the following line: gathered_data = response.body[table_start_pos,height] any ideas on how I should remove that tag? Cheers, Chris -- Posted via http://www.ruby-forum.com/.