3
I got the following XML:
<clientes>
<cliente>
<documentos/>
<livros>
<livro nome="Nome1"/>
<livro nome="Nome2"/>
</livros>
</cliente>
<cliente>
<documentos/>
<livros>
<livro nome="Nome1"/>
<livro nome="Nome3"/>
</livros>
</cliente>
</clientes>
How do I retrieve a list of all of his distinct books using Linq?
I liked its implementation, but it would not be the case to call the method
Attributeinstead ofAttributesand then theFirst?– Vitor Canova
Very well observed. I changed the example as suggested.
– Wagner DosAnjos
It was very simple, "one line only".
– Vitor Canova