Эти два метода LINQ to XML, кажется, делают то же самое. Хотелось бы узнать разницу между ними.
var xdoc = XDocument.Load(filename);
xdoc.Root.FirstNode.ElementsAfterSelf();
xdoc.Root.FirstNode.NodesAfterSelf();
Оба метода возврата возвращают
<Title Name="Cooking with Computers: Surreptitious Balance Sheets" Price="11.9500">
<Authors>
<Author Name="O'Leary, O'Leary" />
<Author Name="MacFeather, MacFeather" />
</Authors>
</Title>
<Title Name="You Can Combat Computer Stress!" Price="2.9900">
<Authors>
<Author Name="Green, Green" />
</Authors>
</Title>
Вот XML
<PubsDatabase>
<Title Name="The Busy Executive's Database Guide" Price="19.9900">
<Authors>
<Author Name="Green, Green" />
<Author Name="Bennet, Bennet" />
</Authors>
</Title>
<Title Name="Cooking with Computers: Surreptitious Balance Sheets" Price="11.9500">
<Authors>
<Author Name="O'Leary, O'Leary" />
<Author Name="MacFeather, MacFeather" />
</Authors>
</Title>
<Title Name="You Can Combat Computer Stress!" Price="2.9900">
<Authors>
<Author Name="Green, Green" />
</Authors>
</Title>
</PubsDatabase>