Hi my code masters,
I trust all of you guys are doing just fine.
Please I have a challenge, I have a program that extract about 2,000 patient records in XML, and this XML have the following section:
HIVEncounter
Laboratory
Regimen
For each of these XML files I want to count each HIVEncounter, Laboratory and Regimen.
So that I can display them in the following format
| File Name | HIVEncounters | Lab’s | Regimen |
Thank you for your usual assistance


Manas MohapatraRank #182 · 13.2K reputationPosted Nov 22, 2016, 8:39 PM EST
Abraham OlatubosunRank #2,749 · 510 reputationPosted Nov 22, 2016, 1:31 AM EST
Thank you Manas Mohapatra,
Manas MohapatraRank #182 · 13.2K reputationPosted Nov 22, 2016, 8:10 AM EST
Abraham OlatubosunRank #2,749 · 510 reputationPosted Nov 22, 2016, 12:00 PM EST
Many thanks Manas Mohapatra,
I apply the solution and it work, since it for one XML file i will like to iterate all the files in the saved directory so that i can display the result in a matrix
File Name
HIVEncounters
Lab’s
Regimen
kindly share how to loop throught the saved directory reading the file name.
Abraham OlatubosunRank #2,749 · 510 reputationPosted Nov 23, 2016, 11:16 PM EST
Many thanks Manas Mohapatra,