How can I do a \[code\]foreach\[/code\] where I can read just the \[code\]XML\[/code\] tag \[code\]Equipe\[/code\] where has the \[code\]<DesFilialnet>\[/code\] equals \[code\]Rest\[/code\] This is an example:\[code\]<Equipe> <CPFUsuario>5546</CPFUsuario> <CodUsuario>6536</CodUsuario> <ApelidoUsuario>PARREIRA.MG</ApelidoUsuario> <NomeCompletoUsuario>JORGE</NomeCompletoUsuario> <CodAgenciaLopesnet>15513</CodAgenciaLopesnet> <DesAgenciaLopesnet>MINAS GERAIS LTDA.</DesAgenciaLopesnet> <DesFilialnet>Rest</DesFilialLopesnet> <CodEquipe>584309</CodEquipe> <CodEquipeNovo>597951</CodEquipeNovo> <DesEquipe>CARLOSMG</DesEquipe> <CodEquipeSecundaria /> <CodEquipeSecundariaNovo /> <DesEquipeSecundaria /> <CodFilialSiebelPronto></CodFilialSiebelPronto> <GrupoAcesso>1</GrupoAcesso></Equipe>\[/code\]I have a lot of \[code\]Equipe\[/code\] tag, but the \[code\]<DesFilialnet>\[/code\] change, and I want just the \[code\]<Equipe>\[/code\] where \[code\]<DesFilialnet>\[/code\] is Rest.Follow how I'm doing\[code\] public void leXmlCors(string file) { XmlReader rdr = XmlReader.Create(file); XDocument doc2 = XDocument.Load(rdr); foreach (var equipes in doc2.Root.Descendants("Equipe")) { foreach (var element in equipes.Descendants()) { // This will read all <Equipe> tag, but I don't want all <Equipe> tag } } }}\[/code\]