Renaming tags
I know there have been many postings on this subject but this one is a little differant.
I have an XML structure as follows:
<Record>
<TD>BARR</TD>
<TD>CYRUS WILLIAM</TD>
<TD/>
<TD>47</TD>
<TD>Bellingen</TD>
<TD/>
<TD>Anglican</TD>
<TD>B1</TD>
<TD>17</TD>
<TD>1</TD>
<TD>10835</TD>
</Record>
I would like to have code to change the structure to:
<Record>
<FamilyName>BARR</FamilyName>
<GivenNames>CYRUS WILLIAM</GivenNames>
<DOB></DOB>
<Age>47</Age>
<Cemetery>Bellingen</Cemetery>
<Section></Section>
<Denomination>Anglican</Denomination>
<Row>B1</Row>
<Lot>17</Lot>
<OccNo>1</OccNo>
<RegisterId>10835</RegisterId>
</Record>
There a few thousand records so doing it by hand is out of the question.
Regards Baudwalker
|