<?xml version="1.0"?>
<AllConcepts>
<Level id="1">
<TST>RegisterPatient</TST>
</Level>
<Level id="2">
<TST>PersonwithInpatientEncounter</TST>
<TST>InpatientwithDiagnoses</TST>
<TST>InpatientwithRadiologyOrder</TST>
</Level>
<Level id="3">
<TST>InpatientwithProblem</TST>
<TST>InpatientwithAllergy</TST>
</Level>
</AllConcepts>
Above is my XML. Please help me to get child node id by giving value in Java.
Example:
- If i give
value=InpatientwithDiagnoses, it should give me node 2; - If i give
value = RegisterPatient, it should give me node 1.