Need to create an xml file (parent($a)/child($b) in code) taking user input.Need to check if number of lines exceeds 4000.If so, close the file checking if proper parent -child are created ,close the xml file with proper tag & write the content in new file until $a times.You are right ! for now you can comment out strict!