<?xml version="1.0" encoding="utf-8" ?>
<class name="EmployeeData.Employee">
<property emp="1">
<empid>12345678</empid>
<empname>ABC1</empname>
<project>XYZ1</project>
</property>
<property emp="2">
<empid>87654321</empid>
<empname>ABC2</empname>
<project>XYZ2</project>
</property>
</class>
In the above XML doc I have two nodes by name property
. I need to parse through it and store the values: "12345678","ABC1","XYZ1"
in one object and "87654321","ABC2","XYZ2"
in another. Also I should be able to use the two objects later whenever and wherever I need. How can I do this?