Instead of passing in root here, pass in status.elements['AVS']

This will save you having to do the REXML::XPath.each(root, "//AVS") later on