How to split an XML file in java? what function and package should we use?