在xml文件中搜索多行

I am working on multi-vendor extension in open cart and i want to make changes in vqmod's XML file. I want to add code in some of my files. The code that i want to add is after the if and for statements, so i need to search those lines and add my code. But i just came to know that XML does not allow me to search multiple lines in a file. Can any one help me out here so that i can search those lines and then add my code thereafter.

Read the Complete vqmod wiki here https://code.google.com/p/vqmod/wiki/Scripting

Your task can be done using offest attribute in search tag, quoting from the vqmod wiki

Optional attribute "offset" to work with the position
if the search position is before and offset 3 it will put the add data before the line, 3 lines above the searched line
if the search position is after and offset 3 it will put the add data after the line, 3 lines below the searched line
if the search position is replace and offset 3 it will remove the code from the search line and the next 3 lines and replace it with the add data
if the search position is top and offset 3 it will put the code before the line, 3 lines below the top of the file
if the search position is bottom and offset 3 it will put the code after the line, 3 lines above the bottom of the file