diff --git a/lib/uirusu/vtresult.rb b/lib/uirusu/vtresult.rb
index <HASH>..<HASH> 100644
--- a/lib/uirusu/vtresult.rb
+++ b/lib/uirusu/vtresult.rb
@@ -133,6 +133,7 @@ module Uirusu
 		#
 		def to_xml
 			result_string = String.new
+			result_string << "<results>\n"
 			@results.each do |result|
 				result_string << "\t<vtresult>\n"
 				RESULT_FIELDS.each{|field|
@@ -140,6 +141,7 @@ module Uirusu
 				}
 				result_string << "\t</vtresult>\n"
 			end if @results != nil
+			result_string << "</results>\n"
 
 			result_string
 		end
Moved the prepending and appending of <results> </results> here instead of in application.rb