started writing method to break up large xml files