S
Sarah
I have an XML file (below) and I am trying to write a macro in excel
to extract the headers and data in to a spreadsheet.
Any advice would be greatly appreciated.
<?xml version="1.0" encoding="UTF-8" ?>
- <xml>
- <Person Key
<Reference>026527</Reference>
<Surname>BLACK</Surname>
<PrevSurname />
<Forename>JOHN</Forename>
<OtherForenames>PETER</OtherForenames>
<Initials>J P</Initials>
<Title>MR</Title>
<TitleSuffix />
<Sex>M</Sex>
<DateOfBirth>1977-11-29 00:00:00</DateOfBirth>
<DOBVerified>1</DOBVerified>
<DateOfDeath />
<DODVerified />
<NationalIDNumber>JJ418191C</NationalIDNumber>
<NationalIDValidType>GBR</NationalIDValidType>
<Nationality>GBR</Nationality>
<Salutation />
<FamiliarName />
<StateRetDate>2042-11-29 00:00:00</StateRetDate>
<ResidentOverseas>0</ResidentOverseas>
<LanguageSpoken />
</xml>
Thank you.
to extract the headers and data in to a spreadsheet.
Any advice would be greatly appreciated.
<?xml version="1.0" encoding="UTF-8" ?>
- <xml>
- <Person Key
<Reference>026527</Reference>
<Surname>BLACK</Surname>
<PrevSurname />
<Forename>JOHN</Forename>
<OtherForenames>PETER</OtherForenames>
<Initials>J P</Initials>
<Title>MR</Title>
<TitleSuffix />
<Sex>M</Sex>
<DateOfBirth>1977-11-29 00:00:00</DateOfBirth>
<DOBVerified>1</DOBVerified>
<DateOfDeath />
<DODVerified />
<NationalIDNumber>JJ418191C</NationalIDNumber>
<NationalIDValidType>GBR</NationalIDValidType>
<Nationality>GBR</Nationality>
<Salutation />
<FamiliarName />
<StateRetDate>2042-11-29 00:00:00</StateRetDate>
<ResidentOverseas>0</ResidentOverseas>
<LanguageSpoken />
</xml>
Thank you.