I'm using the following XML:
-----------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microso ft.com/sharepoint/">
<Module Url="_catalogs/masterpage" Path="PageLayou ts"
RootWebOnly="TR UE">
<File Url="List.aspx" Type="Ghostable InLibrary"
IgnoreIfAlready Exists="TRUE">
</Module>
</Elements>
------------------------------------------------------------------------------------------
XElement pagelayouts = XElement.Load(" ProvisionedFile s.xml");
var query = from c in pagelayouts.Des cendants("File" ) select c;
foreach(var q in query)
{
object test = q.Name;
}
-----------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microso ft.com/sharepoint/">
<Module Url="_catalogs/masterpage" Path="PageLayou ts"
RootWebOnly="TR UE">
<File Url="List.aspx" Type="Ghostable InLibrary"
IgnoreIfAlready Exists="TRUE">
</Module>
</Elements>
------------------------------------------------------------------------------------------
XElement pagelayouts = XElement.Load(" ProvisionedFile s.xml");
var query = from c in pagelayouts.Des cendants("File" ) select c;
foreach(var q in query)
{
object test = q.Name;
}