Vote count:
0
i have this xml file....i have to check the status of SE/SSE ...if it is active then it will get inside the Details tag....it will read the status...if it is active then it will read the details tag , unless it ll discard that details node. Like that if the SSE status is "InACTIVE", no need to read inside that Node.
<Employees>
<Employee>
<SE>
<Name>bikash</Name>
<dept>DY</dept>
<status>ACTIVE</status>
<Details dataStr="list">
<status>ACTIVE</status>
<address>India</address>
<streetNo>19</streetNo>
</Details>
<Details dataStr="list">
<status>InACTIVE</status>
<address>CHINA</address>
<streetNo>20</streetNo>
</Details>
<area>BLORE</area>
<SEIdCount>1</SEIdCount>
</SE>
<SSE>
<status>InACTIVE</status>
<emplNo>23</emplNo>
<Details dataStr="list">
<status>InActive</status>
<absent>y</absent>
</Details>
<Details dataStr="list">
<status>Active</status>
<name>anu</NAME>
</Details>
<area>CHN</area>
<SEIdCount>2</SEIdCount>
</SSE>
My Expected response is this
<Employees>
<Employee>
<SE>
<Name>bikash</Name>
<dept>DY</dept>
<status>ACTIVE</status>
<Details dataStr="list">
<status>ACTIVE</status>
<address>India</address>
<streetNo>19</streetNo>
</Details>
<area>BLORE</area>
<SEIdCount>1</SEIdCount>
</SE>
asked 1 min ago
how to copy the parent node and all the child nodes of that parent with specific attribute should be present both in parent and child
Aucun commentaire:
Enregistrer un commentaire