> So, this shows that we've outgrown the current script and need something
> more robust (probably proper parsing through REXML), and that when you least
> expect it, consultants will throw a few landmines under your scooter.

I'd like to underscore this point:

IF YOU HAVE XML, USE AN XML PARSER TO DEAL WITH IT.

I rarely shout, but using split() and gsub() and other
string-manipulation tools to handle XML will always go wrong
eventually.   Probably in a very expensive way, as this example shows.
 Take the time to learn REXML, it will save you immense trouble later.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to