public PackageDefinition(XElement element)
        {
            MetaData = new PackageMetaData(element.Element(PackageMetaData.ElementName));

            Contents = element
                .Element(PackageContentsElementName)
                .Elements(ContentDefinition.ElementName)
                .Select(x => new ContentDefinition(x))
                .ToList();

            Layouts = element
                .Element(PackageLayoutsElementName)
                .Elements(LayoutDefinition.ElementName)
                .Select(x => new LayoutDefinition(x))
                .ToList();
        }
        public PackageDefinition(XElement element)
        {
            MetaData = new PackageMetaData(element.Element(PackageMetaData.ElementName));

            Contents = element
                       .Element(PackageContentsElementName)
                       .Elements(ContentDefinition.ElementName)
                       .Select(x => new ContentDefinition(x))
                       .ToList();

            Layouts = element
                      .Element(PackageLayoutsElementName)
                      .Elements(LayoutDefinition.ElementName)
                      .Select(x => new LayoutDefinition(x))
                      .ToList();
        }
 public PackageDefinition()
 {
     MetaData = new PackageMetaData();
     Layouts = new List<LayoutDefinition>();
     Contents = new List<ContentDefinition>();
 }
 public PackageDefinition()
 {
     MetaData = new PackageMetaData();
     Layouts  = new List <LayoutDefinition>();
     Contents = new List <ContentDefinition>();
 }