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 MohapatraPosted Nov 23, 2016, 1:39 AM
Abraham OlatubosunPosted Nov 24, 2016, 4:16 AM
Many thanks Manas Mohapatra,
Abraham OlatubosunPosted Nov 22, 2016, 5:00 PM
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.
Manas MohapatraPosted Nov 22, 2016, 1:10 PM
Abraham OlatubosunPosted Nov 22, 2016, 6:31 AM
Thank you Manas Mohapatra,