Code: Select all
<?xml version="1.0"?>
<ToolStatusReport xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<GlobalInformation>
<UserName>ADMIN</UserName>
<ComputerName>LAPTOP01</ComputerName>
<ProjectNumber>0-1000-00001</ProjectNumber>
<ClientName>Burger King</ClientName>
In my case, the message box shows the entire line with identifiers rather than just the info by itself:
Code: Select all
#SingleInstance, Force ; Only allow one running instance of script at one time
FileRead, XMLData, %clipboard%/Status.xml ; Read XML file
RegExMatch(XMLData, "s)<ClientName>(.*?)</ClientName>", ClientName) ; Parse for Client
MsgBox, % ClientName
return
Preferred result: Burger King
How can I isolate the information by itself without the identifiers?