Namespace headache

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • egholm@gmail.com

    Namespace headache

    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;
    }

Working...