<component> <section>
<templateId root="2.16.840.1.113883.10.20.22.2.6" />
<templateId root="2.16.840.1.113883.10.20.22.2.6" extension="2015-08-01" />
<templateId root="2.16.840.1.113883.10.20.22.2.6.1" />
<templateId root="2.16.840.1.113883.10.20.22.2.6.1" extension="2015-08-01" />
<id root="4AC08EA4-181A-11E8-B5A3-E60446556304" />
<code code="48765-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Allergies, Adverse Reactions, Alerts" />
<title>Allergies</title>
<text>
<table>
<thead>
<tr>
<th>Active Allergy</th>
<th>Reactions</th>
<th>Severity</th>
<th>Noted Date</th>
<th>Comments</th>
</tr>
</thead>
<tbody>
<tr ID="allergy2">
<td ID="allergy2allergen">Adhesive Tape-Silicones</td>
<td>
<content ID="allergy2reaction1">Red skin color</content>
</td>
<td ID="allergy2severity">Low</td>
<td>04/30/2012</td>
<td ID="allergy2comments">
<paragraph>Skin gets red and irritated</paragraph>
</td>
</tr>
<tr ID="allergy3">
<td ID="allergy3allergen">Aspirin</td>
<td>
<content ID="allergy3reaction1">Nausea</content>
</td>
<td ID="allergy3severity">Low</td>
<td>07/17/2012</td>
<td ID="allergy3comments" />
</tr>
<tr ID="allergy4">
<td ID="allergy4allergen">Hydrocodone</td>
<td>
<content ID="allergy4reaction1">Hives</content>
</td>
<td ID="allergy4severity">High</td>
<td>10/04/2016</td>
<td ID="allergy4comments" />
</tr>
<tr ID="allergy5">
<td ID="allergy5allergen">Iodine</td>
<td />
<td ID="allergy5severity">Low</td>
<td>04/30/2012</td>
<td ID="allergy5comments">
<paragraph>Unknown reaction. Allergy identified in childhood</paragraph>
</td>
</tr>
<tr ID="allergy6">
<td ID="allergy6allergen">Latex</td>
<td>
<content ID="allergy6reaction1">Rash</content>
</td>
<td ID="allergy6severity">High</td>
<td>09/16/2015</td>
<td ID="allergy6comments" />
</tr>
<tr ID="allergy7">
<td ID="allergy7allergen">Peanut</td>
<td>
<content ID="allergy7reaction1">Acne</content>
</td>
<td ID="allergy7severity" />
<td>10/06/2016</td>
<td ID="allergy7comments" />
</tr>
<tr ID="allergy8">
<td ID="allergy8allergen">Penicillin</td>
<td>
<content ID="allergy8reaction1">Rash</content>
</td>
<td ID="allergy8severity">High</td>
<td>09/22/2015</td>
<td ID="allergy8comments" />
</tr>
<tr ID="allergy9">
<td ID="allergy9allergen">Sulfa (Sulfonamide Antibiotics)</td>
<td>
<content ID="allergy9reaction1">Hives</content>
</td>
<td ID="allergy9severity">High</td>
<td>04/30/2012</td>
<td ID="allergy9comments" />
</tr>
<tr ID="allergy10">
<td ID="allergy10allergen">Tetracycline</td>
<td>
<content ID="allergy10reaction1">Stomach ache</content>
</td>
<td ID="allergy10severity">Low</td>
<td>04/30/2012</td>
<td ID="allergy10comments" />
</tr>
</tbody>
</table>
</text>
</section>
</component>


how to get value of different <td> values from this?????