Note that there are some explanatory texts on larger screens.

plurals
  1. POany open-source tool or excel macro to extract a list of xpaths from an xml?
    primarykey
    data
    text
    <p>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):</p> <p>Xml 1:</p> <pre><code>&lt;Client&gt; &lt;LastName&gt;Bill&lt;/LastName&gt; &lt;FirstName&gt;Gates&lt;/FirstName&gt; &lt;MiddleName/&gt; &lt;Suffix/&gt; &lt;DateOfBirth&gt;30-May-1968&lt;/DateOfBirth&gt; &lt;PlaceOfBirth/&gt; &lt;SSN&gt;n/a&lt;/SSN&gt; &lt;Gender&gt;Male&lt;/Gender&gt; &lt;District&gt; &lt;City&gt;SHELTON&lt;/City&gt; &lt;Mayor&gt;wong&lt;/Mayor&gt; &lt;/District&gt; &lt;State&gt;WA&lt;/State&gt; &lt;Zip&gt;96484&lt;/Zip&gt; &lt;/Client&gt; </code></pre> <p>Xml 2:</p> <pre><code>&lt;Client&gt; &lt;LastName&gt;Warron&lt;/LastName&gt; &lt;FirstName&gt;Buffet&lt;/FirstName&gt; &lt;MiddleName&gt;P&lt;/MiddleName&gt; &lt;Suffix/&gt; &lt;DateOfBirth&gt;12-Aug-1957&lt;/DateOfBirth&gt; &lt;PlaceOfBirth&gt;Mississippi&lt;/PlaceOfBirth&gt; &lt;SSN&gt;n/a&lt;/SSN&gt; &lt;Gender&gt;Male&lt;/Gender&gt; &lt;City&gt;Missi&lt;/City&gt; &lt;State&gt;KS&lt;/State&gt; &lt;Account&gt; &lt;Type&gt; &lt;Name&gt;Cash&lt;/Name&gt; &lt;Currency&gt;USD&lt;/Currency&gt; &lt;Country&gt;USA&lt;/Country&gt; &lt;/Type&gt; &lt;/Account&gt; &lt;Zip&gt;66096&lt;/Zip&gt; &lt;/Client&gt; </code></pre> <p>Then put a list of xpaths in column A of an excel sheet (ie. 'Xpaths') such as:</p> <pre><code>/Client/DateOfBirth /Client/Account/Type/Name /Client/Zip /Client/District/City </code></pre> <p>Desired behavior: Receive results in a table of a new excel sheet (ie. 'Results') with columns such as:</p> <pre><code>/Client/DateOfBirth /Client/Account/Type/Name /Client/Zip /Client/District/City ---------------- ------------------------ ------------ -------------------- 30-May-1968 96484 SHELTON 12-Aug-1957 Cash 66096 </code></pre> <p>Wouldn't mind if this was done using excel vba macro.</p> <p>UPDATE - debugging Tim's answer: <img src="https://i.stack.imgur.com/i4pjI.jpg" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload