FileRead, inventory, xmlfile.xml RegExMatch(inventory, "", item1) MsgBox % item1 pos = 1 While, pos := RegExMatch(inventory, "(.*?)", price, pos + 1) MsgBox % price1 While, pos := RegExMatch(inventory, ".*?", name, pos + 1) names .= name . "`n" MsgBox % names