REXML StreamListener

Anyone ever use the REXML StreamListener in any of their rails projects
before? I m trying to set it up in one of my controllers but Im cofused
as to where Im supposed to set up the Handler class.

thanks for the help!
-Sergio