I have a XML file i need to write a script for. The script needs to search the entire XML file and gather the total basic record count. Then divide that number by 3 and output it into 3 seperate files. I have been able to gather the total count. the math. (OH also includes the header, signature and trailer) which i've managed to figure that out also.