Read XML and return values

Advertisement
I am trying to figure out the easiest way to read values from an XML file. The values are then going to be used in an automation system that checks pressure values compared to these values before continuing the system. I have created an XML file that has different parameters for each program Recipe.
For Example:
<RecipeVault>
<Recipe>
 <name>JNR</name>
 <RoughPumpPressure>5E-2</RoughPumpPressure>
 <CoolerMotorRoughingPressure>1E-3</CoolerMotorRoughingPressure>
 <TurboPressure>9.9E-3</TurboPressure>
 <HeChargePressure>350</HeChargePressure>
 <HeVentedMotorPressure>5</HeVentedMotorPressure>
 <HiVacCoolerMotorPressure>2E-6</HiVacCoolerMotorPressure>
<WaterMoleculePressure>1E-7</WaterMoleculePressure>
</Recipe>
I was trying to make my own VI that could be given the name “JNR” and the parameter “RoughPumpPressure” and output the value 5E-2. I have just been running in circles trying to use the XML Parsers but no luck. I have also looked online and found the JKI program but have not tried it yet, I need IT approval to download the demo. Please let me know if there is an easy method to do this or where to find a VI that already exists that could make this work.
Thank you for your help!
Advertisement

Replay

Repeat after me:  XPath is awesome.  Here are a couple of quick examples:
Simple XPath.
Attached VI is a stripped out GUI to interactively request the name and parameters from auto-populating rings.
Attachments:
SimpleXMLGUI.vi ‏32 KB