private IEnumerable <PinDate> ParseDateAttribute(Stream response) { var doc = XElement.Load(response); var dates = from d in doc.Descendants("date") select PinDate.Parse(d); return(dates); }
public static IObservable <IEnumerable <PinDate> > SelectDateAttribute(this IObservable <XElement> observable) { return(observable.Select(x => x.Descendants("date")) .Select(xs => xs.Select(x => PinDate.Parse(x)))); }