5
Answers

Count each header tag name in xml using c#

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

Answers (5)
0
Vijaya Kadiyala

Vijaya Kadiyala

NA 2.4k 258.5k 17y

Hi

Use the below query:

SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)<>"~") AND
(Left$([Name],4) <> "Msys") AND (MSysObjects.Type)=1 ORDER BY MSysObjects.Name;

Thanks -- Vj

http://dotnetvj.blogspot.com