Grouping of similar nodes in xml

Mar 18, 2014 at 10:55 AM
I have generated a code mentioned below:

-<Diagnosis>
<DiagnosisType>Principal</DiagnosisType>
<Version>ICD9</Version>
<Qualifier>BK</Qualifier>
<Code>85406</Code>
<PoiIndicator/>
<Poi>Unknown</Poi>
</Diagnosis>
-<Diagnosis>
<DiagnosisType>Other</DiagnosisType>
<Version>ICD9</Version>
<Qualifier>BF</Qualifier>
<Code>95911</Code>
<PoiIndicator/>
<Poi>Unknown</Poi>
</Diagnosis>
-<Diagnosis>
<DiagnosisType>Other</DiagnosisType>
<Version>ICD9</Version>
<Qualifier>BF</Qualifier>
<Code>2851</Code>
<PoiIndicator/>
<Poi>Unknown</Poi>
</Diagnosis>
-<Diagnosis>
<DiagnosisType>Other</DiagnosisType>
<Version>ICD9</Version>
<Qualifier>BF</Qualifier>
<Code>8054</Code>
<PoiIndicator/>
<Poi>Unknown</Poi>
</Diagnosis>

I want this all to be under one node :

<ListOfDiagnosis>
-<Diagnosis>
<DiagnosisType>Principal</DiagnosisType>
<Version>ICD9</Version>
<Qualifier>BK</Qualifier>
<Code>85406</Code>
<PoiIndicator/>
<Poi>Unknown</Poi>
</Diagnosis>
-<Diagnosis>
<DiagnosisType>Other</DiagnosisType>
<Version>ICD9</Version>
<Qualifier>BF</Qualifier>
<Code>95911</Code>
<PoiIndicator/>
<Poi>Unknown</Poi>
</Diagnosis>
-<Diagnosis>
<DiagnosisType>Other</DiagnosisType>
<Version>ICD9</Version>
<Qualifier>BF</Qualifier>
<Code>2851</Code>
<PoiIndicator/>
<Poi>Unknown</Poi>
</Diagnosis>
-<Diagnosis>
<DiagnosisType>Other</DiagnosisType>
<Version>ICD9</Version>
<Qualifier>BF</Qualifier>
<Code>8054</Code>
<PoiIndicator/>
<Poi>Unknown</Poi>
</Diagnosis>
</ListOfDiagnosis>

Please help me in achieving this. Thanks in advance ...