hs.RootTree = rootTree;
rootTree.helpSources.Add (hs);
string epath = "extra-help-source-" + hs.Name;
- Node hsn = rootTree.RootNode.CreateNode (hs.Name, "root:/" + epath);
+ Node hsn = rootTree.RootNode.CreateNode (hs.Name, RootNamespace + epath);
rootTree.nameToHelpSource [epath] = hs;
hsn.EnsureNodes ();
foreach (Node n in hs.Tree.RootNode.ChildNodes)
continue;
}
string name = e.InnerText;
- Node orCreateNode = parent.GetOrCreateNode (label, "root:/" + name);
+ Node orCreateNode = parent.GetOrCreateNode (label, RootNamespace + name);
orCreateNode.EnsureNodes ();
this.nameToNode[name] = orCreateNode;
XmlNodeList xmlNodeList = xmlNode.SelectNodes ("./node");
public Node LookupEntryPoint (string name)
{
Node result = null;
- if (!this.nameToNode.TryGetValue (name, out result)) {
+ if (!this.nameToNode.TryGetValue (name, out result))
result = null;
- }
return result;
}
public HelpSource GetHelpSourceAndIdFromName (string name, out string internalId, out Node node)
{
internalId = "root:";
- node = this.LookupEntryPoint (name);
+ node = LookupEntryPoint (name);
return node == null ? null : node.ChildNodes.Select (n => n.Tree.HelpSource).Where (hs => hs != null).Distinct ().FirstOrDefault ();
}