Esempio n. 1
0
 private static void ResolveParentsAndChildNodesLinks()
 {
     for (int i = 0; i < XmlInheritance.unresolvedNodes.Count; i++)
     {
         XmlAttribute xmlAttribute = XmlInheritance.unresolvedNodes[i].xmlNode.Attributes[XmlInheritance.ParentNameAttributeName];
         if (xmlAttribute != null)
         {
             XmlInheritance.unresolvedNodes[i].parent = XmlInheritance.GetBestParentFor(XmlInheritance.unresolvedNodes[i], xmlAttribute.Value);
             if (XmlInheritance.unresolvedNodes[i].parent != null)
             {
                 XmlInheritance.unresolvedNodes[i].parent.children.Add(XmlInheritance.unresolvedNodes[i]);
             }
         }
     }
 }