your result here
indicated it is chr(10). So the split should be working
try this code
Code:
Dim strA() As String
strA = Split(result, Chr(10))
msgbox ubound(strA) 'should be 1
msgbox strA(1) 'should be "<xml><result>200 OK</result><credit>2114.0000</credit></xml>" tho' credit value may differ
'it would really help and save a lot of time if you provide the text of the error message - it would be something like 'syntax error - missing parameter'. As it is see the missing comma highlighted in red
if ubound(strA)=1 then msgbox iif(instr(strA(1),"<Credit>")=0,0,val(mid(strA(1), instr(strA(1),"<Credit>")+8))) 'should be 2114 or whatever value
because of the val function, it will pick up any numeric value after <credit>