Пример #1
0
 public void LoadXElement(XElement elem)
 {
     Name = elem.Name.ToString();
     m_attributes.Clear();
     Elements.Clear();
     foreach (var actItem in elem.Attributes())
     {
         IXEP_EmdAttribute attribute = XEP_EmdFactrory.CreateEmdAttribute();
         attribute.LoadXAttribute(actItem);
         AddAttribute(attribute);
     }
     foreach (var actItem in elem.Elements())
     {
         IXEP_EmdElement elemEmd = XEP_EmdFactrory.CreateEmdElement();
         elemEmd.LoadXElement(actItem);
         Elements.Add(elemEmd);
     }
 }
Пример #2
0
 public void Load(XDocument xDocument)
 {
     Root = XEP_EmdFactrory.CreateEmdElement();
     Root.LoadXElement(xDocument.Root);
 }