Extracting data from XML to use as a variable

I have a simple XML (below) that holds the build information for servers. I am struggling to extract the information I need.I’m not sure where I am going wrong. Any help would be appreciated.I can’t attach the project file as it is not allowed!!!I don’t seem to be able to attach the xml so here it is:




SJP-PB0131ZD
C$\Temp
LOCAL
Swift 6.8.0 SR14 Build 3
Q2 2014
Swift Illustrations_V580S_fr
20140821 - Illustrations v187.1 - Assureweb


SJP19XEN200VM
\SJP19XEN200VM\c$\Temp
DIT
Swift 6.8.0 SR11 Build 36
Q2 2014
Swift Illustrations_V570S_fr
20140529 - Illustrations v184.2 - Assureweb


SJP19XEN201VM
\SJP19XEN201VM\c$\Temp
SIT
Swift 6.8.0 SR14 Build 3
Q3 2014
Swift Illustrations_V580S_fr
20140821 - Illustrations v187.1 - Assureweb


SJP19XEN202VM
\SJP19XEN202VM\c$\Temp
UAT
Swift 6.8.0 SR14 Build 3
Q3 2014
Swift Illustrations_V580S_fr
20140821 - Illustrations v187.1 - Assureweb


SJP19XEN203VM
\SJP19XEN203VM\c$\Temp
MONT
Swift 6.8.0 SR11 Build 36
Q2 2014
Swift Illustrations_V570S_fr
20140529 - Illustrations v184.2 - Assureweb


SJP19XEN204VM
\SJP19XEN204VM\c$\Temp
Platform DIT
Swift 6.8.0 SR14 Build 2 Patch 1
Q3 2014
Swift Illustrations_V580SA1_fr
20140821 - Illustrations v187.1 - Assureweb


SJP19XEN205VM
\SJP19XEN205VM\c$\Temp
Platform UAT
Swift 6.8.0 SR14 Build 2 Patch 1
Q3 2014
Swift Illustrations_V580SA1_fr
20140821 - Illustrations v187.1 - Assureweb


SJP19XEN206VM
\SJP19XEN206VM\c$\Temp
Platform SIT
Swift 6.8.0 SR14 Build 2 Patch 1
Q3 2014
Swift Illustrations_V580SA1_fr
20140821 - Illustrations v187.1 - Assureweb


SJP19XEN207VM
\SJP19XEN207VM\c$\Temp
CFR
Swift 6.8.0 SR11 Build 36 Patch 1
Q3 2014
Swift Illustrations_V570SA1_fr
20140529 - Illustrations v184.2 - Assureweb


SJP19XEN208VM
\SJP19XEN208VM\c$\Temp
UAT
Swift 6.8.0 SR14 Build 3
Q3 2014
Swift Illustrations_V580S_fr
20140821 - Illustrations v187.1 - Assureweb


SJP19XEN209VM
\SJP19XEN209VM\c$\Temp

Swift 6.8.0 SR14 Build 2 Patch 1
Q3 2014
Swift Illustrations_V580SA1_fr
20140821 - Illustrations v187.1 - Assureweb


SJP19XEN210VM
\SJP19XEN210VM\c$\Temp

Swift 6.8.0 SR14 Build 2 Patch 1
Q3 2014
Swift Illustrations_V580SA1_fr
20140821 - Illustrations v187.1 - Assureweb


SJP19XEN211VM
\SJP19XEN211VM\c$\Temp

Swift 6.8.0 SR14 Build 2 Patch 1
Q3 2014
Swift Illustrations_V580SA1_fr
20140821 - Illustrations v187.1 - Assureweb

 

Hi Mark,

If your looking to use XPaths to extract information from an xml file I suggest having a look at the following tutorials for guidance.

http://www.w3schools.com/xpath/

Please also note that you can send projects and supporting files to our support email address if you require.