Now I don't want WeaponX to get angry with me but I've read almost all of the pages and haven't seen much to help me out with the "No Xml File." message box.
All I am looking to do is pull 3 values from the following xml file.
<?xml version="1.0"?>
<Batch>
<Case>5555555</Case>
<SubmittedBy>Testerson</SubmittedBy>
<Description>Test</Description>
</Batch>
My script is a "starter" script that doesn't have much to it other than what I copied from a previous post.
#include <array.au3>
#include <_XMLDomWrapper.au3>
_SetDebug(True)
Global $Batch[3]
$sXmlFile = "batchtest.xml"
If @error Then
MsgBox(4096, "File Open", "No file chosen")
Else
$oOXml = ""
$oOXml = _XMLFileOpen($sXmlFile, "")
EndIf
If Not IsObj($oOXml) then
MsgBox(0,"Error","No Xml file.")
Exit
EndIf
$xml_path = "Batch"
$Batch[0] = _XMLGetValue($xml_path&"/Case")
$Batch[1] = _XMLGetValue($xml_path&"/SubmittedBy")
$Batch[2] = _XMLGetValue($xml_path&"/Description")
_ArrayDisplay($Batch)
As always thanks for any help and a damn nice UDF.