Hi, We have a requirement in which we are generating XML file. In that XML files multiple tags/hierarchies are required to set as looping element. So we are using tfileoutputMSXML to generate XML. Now we have one more requirement in which XML is required to be spitted after every 10K records. Meaning we to have spilt the XML if the ROOT TAG IS OCCURRING MORE THAN 10K TIMES NOT ON THE NUMBER OF LINES. please suggest what is the best way to achieve this.