private static IEnumerable<XElement> GetRepositoryElements(XDocument document) { return from e in document.Root.Elements("repository") select e; }