fix nesting error in nokogiri xml_processor