functions. The first two methods that we will consider are Ancestors and Descendants, which
return an IEnumerable
Descendants returns all the elements after the current node in the document graph, regardless
of their depth in the graph. Ancestors is somehow complementary to Descendants and returns
all the elements before the current node in the document graph. Both are shown here:
public static IEnumerable
this IEnumerable
where T: XNode;
public static IEnumerable
this IEnumerable
where T: XNode;
public static IEnumerable
this IEnumerable
where T: XContainer;
public static IEnumerable
this IEnumerable
where T: XContainer;
These methods are useful for querying an XML source to find a particular element after or
before the current one, regardless of its position in the graph
No comments:
Post a Comment