..
..
...
...
...
...
</Person>
</Root>
We are trying to parse the xml as below:
1)Add the Root and Org tag in a list.
2) Start reading the above xml using SAX parser (SAXParser) based on the Person tag.
3) Create a group of 10 person
4) Create valid xml file with above root and 10 person information.
5) Parse the new xml using DOM parser providing XPath as below
//root/Org/Person/per_id
//root/Org/Person/per_number
//root/Org/Person/PersonAddress/lane
//root/Org/Person/PersonAddress/city
...
....
Keep iterating the org source till all records are scanned.