LINQ to XML querying for sibling elements
问题 Sorry if this question is very basic, but I haven't worked with XML very much, and this is my first time working with LINQ to XML... I have an XML sitemap that is structured like a directory tree: <Site> <File GUID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">FileName</file> <Folder name="FolderName"> <Security> <Role>Admin</role> </Security> <File GUID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">FileName</file> <Folder name="subFoler"> <File GUID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">FileName</file>