Minor optimisations in .net noobie's code: Dim result As String = (From c In doc.<Header>.<From>.<Credential> Where c...@domain = "BranchID" Select c.<Identity>.Value).FirstOrDefault()
BTW The <tag[index]> syntax is new to me: it's not valid VB9. Is it just a typo for <tag>(index), or a new feature in VB10? -- Regards, Mark Hurd, B.Sc.(Ma.)(Hons.)