in reply to open a new xml file if line count exceeds 4000 lines
ouch.
You need to go back and wrap that in <code> tags and repaste it so it's readable