Example #1
0
        private void ImportPart(string xml)
        {
            XElement     x        = XElement.Parse(xml, LoadOptions.None);
            string       id       = Xml.Parse(x, "id");
            string       typecode = Xml.Parse(x, "typecode");
            IContentPart p        = PartFactory.Instantiate(id, typecode, this);

            p.DeserializeFromXml(xml);
            this.AddPart(p);
        }