in reply to XML file to split

See XML::DOM, it should be helpful