Here is a example of the format of the xml file that I would be reading:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfSessionData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SessionData SessionId="Location/Device/DeviceName 1" SessionName="DeviceName 1" Host="127.0.0.1" Port="23" Proto="Telnet" Session="DeviceName 1" Username="" FileName="" />
</ArrayOfSessionData>
I've been attempting to RegExMatch but I know I don't understand it enough to know what I should be doing.
Here is my sample code some of which I have based on my research in other similar posts:
Code: Select all
FileRead, XMLData, Sessions.XML; Read XML FileAppend
RegExMatch(XMLData, "s)SessionId(.*?)\/SessionID",SessionID)
AllInfo := ""
AllInfo .= SessionId "`n"
Msgbox, % AllInfo
Any insight into what I should be doing would be helpful. Thank you in advance.