# Extracting data from XML to use as a variable

**URL:** <https://www.finalbuilder.com/forums/t/extracting-data-from-xml-to-use-as-a-variable/4585>\
**Category:** Discussion\
**Created:** [September 30, 2014, 4:22am UTC](https://www.finalbuilder.com/forums/t/extracting-data-from-xml-to-use-as-a-variable/4585 "2014-09-30T04:22:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinytycoon](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/46a35a/32.png) [@tinytycoon](https://www.finalbuilder.com/forums/u/tinytycoon)\
**Post date:** [September 30, 2014, 4:22am UTC](https://www.finalbuilder.com/forums/t/extracting-data-from-xml-to-use-as-a-variable/4585/1 "2014-09-30T04:22:17Z")

</div>

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  
  
&nbsp; |

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [October 1, 2014, 1:20am UTC](https://www.finalbuilder.com/forums/t/extracting-data-from-xml-to-use-as-a-variable/4585/2 "2014-10-01T01:20:16Z")

</div>

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/](http://www.w3schools.com/xpath/)   
  
 Please also note that you can send projects and supporting files to our support email address if you require.
