Monodoc.Widgets.Catalog.LoadChildren C# (CSharp) Method

LoadChildren() protected method

protected LoadChildren ( ) : void
return void
        protected override void LoadChildren()
        {
            foreach (XmlElement ns in index_doc.DocumentElement.SelectNodes ("Types/Namespace")) {
                string ns_dir = Path.Combine (path, ns.GetAttribute ("Name"));
                string file = Path.Combine (path, "ns-" + ns.GetAttribute ("Name") + ".xml");
                if (!File.Exists (file))
                    file = ns_dir + ".xml";
                if (!File.Exists (file))
                    continue;
                AddChild (new NamespaceNode (this, file, ns_dir, ns));
            }
        }