[AutoIt]Read XML Elements from file 11-26-2011, 10:30 AM
#1
Code:
Func ReadXML($Path,$Element)
;by 1234hotmaster
Local $aRet = StringRegExp(FileRead($Path), '<' & $Element & '>([^:]*?)</' & $Element & '>', 3)
If IsArray($aRet) Then
Return $aRet
Else
Return SetError(-1)
EndIf
EndFunci was bored so i thought i make this

credits to Malkey for the regex

This function will return an array of all element's values found in that file.
(This post was last modified: 11-28-2011, 10:10 PM by Skullmeat.)
Pierce the life fibers with your drill.
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)