http://msdn.microsoft.com/en-us/library/bb387086.aspx
On 7 February 2012 08:25, <ifum...@gmail.com> wrote: > Any code on how i would do this, fairly new to linq**** > > ** ** > > *From:* ozdotnet-boun...@ozdotnet.com [mailto: > ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Arjang Assadi > *Sent:* Tuesday, 7 February 2012 8:23 AM > *To:* ozDotNet > *Subject:* Re: XML Question**** > > ** ** > > Rather than working by index, look at the attribute value for > Credential.domain,**** > > ignore the Credentials where the "domain" attribute is not BranchID.**** > > On 7 February 2012 08:00, <ifum...@gmail.com> wrote:**** > > <Credential domain="yyyS">**** > > <Identity>7118</Identity>**** > > </Credential>**** > > <Credential domain="CompanyName">**** > > <Identity> Services Pty Ltd</Identity>**** > > </Credential>**** > > <Credential domain="ABN">**** > > <Identity>123456</Identity>**** > > </Credential>**** > > <Credential domain="BranchID">**** > > <Identity>22270</Identity>**** > > </Credential>**** > > <Credential domain="Name">**** > > <Identity>ZZ</Identity>**** > > </Credential>**** > > **** > > **** > > How do i get the SBranchID? I can use > Linq.XElement.Parse(rt2).<From>.<Credential>(3).<Identity>.Value but what if > i do not know the sequence?**** > > **** > > **** > > Anthony**** > > ** ** >