Basically I want to be able to specify an xml or 2 like so (would be great if you could select a folder and it would grab all the xml files from there):
Xml 1:
<Client>
<LastName>Bill</LastName>
<FirstName>Gates</FirstName>
<MiddleName/>
<Suffix/>
<DateOfBirth>30-May-1968</DateOfBirth>
<PlaceOfBirth/>
<SSN>n/a</SSN>
<Gender>Male</Gender>
<District>
<City>SHELTON</City>
<Mayor>wong</Mayor>
</District>
<State>WA</State>
<Zip>96484</Zip>
</Client>
Xml 2:
<Client>
<LastName>Warron</LastName>
<FirstName>Buffet</FirstName>
<MiddleName>P</MiddleName>
<Suffix/>
<DateOfBirth>12-Aug-1957</DateOfBirth>
<PlaceOfBirth>Mississippi</PlaceOfBirth>
<SSN>n/a</SSN>
<Gender>Male</Gender>
<City>Missi</City>
<State>KS</State>
<Account>
<Type>
<Name>Cash</Name>
<Currency>USD</Currency>
<Country>USA</Country>
</Type>
</Account>
<Zip>66096</Zip>
</Client>
Then put a list of xpaths in column A of an excel sheet (ie. ‘Xpaths’) such as:
/Client/DateOfBirth
/Client/Account/Type/Name
/Client/Zip
/Client/District/City
Desired behavior: Receive results in a table of a new excel sheet (ie. ‘Results’) with columns such as:
/Client/DateOfBirth /Client/Account/Type/Name /Client/Zip /Client/District/City
---------------- ------------------------ ------------ --------------------
30-May-1968 96484 SHELTON
12-Aug-1957 Cash 66096
Wouldn’t mind if this was done using excel vba macro.
UPDATE – debugging Tim’s answer:

This worked for me using your examples (with the xml DTD added at the top)…