set i 1
set name string "Text"
set ext string ".xml"
for
string fname p= "%s%d%s" name i ext
math i += 1
findloc OFFSET string "\xff\xfe<\x00C\x00o\x00n\x00v\x00e\x00r\x00s\x00a\x00t\x00i\x00o\x00n\x00s\x00>\x00" 0 ""
if OFFSET == ""
exit
endif
goto offset
findloc SIZE string "<\x00/\x00C\x00o\x00n\x00v\x00e\x00r\x00s\x00a\x00t\x00i\x00o\x00n\x00s\x00>\x00"
math size += 36
math size -= offset
log fname offset size
math offset += size
goto offset
next