Erel, the part I want is the part that doesn't quite look like XML, e.g. <CurrentTrackDuration val="0:03:54"/>
Martin, what I have posted is exactly what I receive including headers, except that there are often more values than I have shown in the "body".
Building a parser to extract the information I need isn't difficult - all the items I am looking for include a "Name" followed by "val=" and the "Value" ends at "/>". The guts of the parser I have built is shown below, but I am not very familiar with XML and similar formats so I wondered whether there was already a parser available for this. I can use the one I have written. Maybe there's a more efficient way.
For each line:
Sub Parse_Item(Item as String)
Dim sItem, sValue as String
If Item <> "" then
If Item.Contains("<") AND Item.Contains("val=") AND Item.Contains("/>") Then
sItem = Item.SubString2(Item.IndexOf("<")+1,Item.IndexOf("val=") - 1)
sValue = Item.SubString2(Item.IndexOf("val=")+5,Item.IndexOf("/>") - 1)
End If
End if
End Sub
Thanks for your input.