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, <[email protected]> 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**** >
