I have schema representing hl7 v2.3 ORU^R01 message. I had created my schema by looking at how the hl7 accelerator represents the schema for ORU^R01 message. So now when i validate the schema againt the flat file i get the xml output in following order,
<Root>
<MSH>
<PID>
<PV1>
<OBR>
<OBX>
<NTE>
<NTE>
<OBX>
<OBR>
<OBX>
<NTE>
<NTE>
Notice that all the nodes are sequenced in right order under the same root node but not structured as a parent child nodes.
So now I am trying to get the above xml nodes in a parent child relationship like below,
<Root>
<MSH>
<PID>
<PV1>
<OBR>
<OBX>
<OBX>
<NTE>
<NTE>
<OBX>
<OBR>
<OBX>
<NTE>
<NTE>
Anyone knows how to get this in right order as above.
Thanks
<Root>
<MSH>
<PID>
<PV1>
<OBR>
<OBX>
<NTE>
<NTE>
<OBX>
<OBR>
<OBX>
<NTE>
<NTE>
Notice that all the nodes are sequenced in right order under the same root node but not structured as a parent child nodes.
So now I am trying to get the above xml nodes in a parent child relationship like below,
<Root>
<MSH>
<PID>
<PV1>
<OBR>
<OBX>
<OBX>
<NTE>
<NTE>
<OBX>
<OBR>
<OBX>
<NTE>
<NTE>
Anyone knows how to get this in right order as above.
Thanks