static Tree<string> NodeParameters(XmlNode node) { var result = new TreeList<string>() .AddBranchValue(node.InnerText); foreach (XmlAttribute attribute in node.Attributes) { result.AddBranchValue(attribute.Value); } return result; }
static void AddBranch(TreeList <CellBase> source, string body) { var branchNode = new CellBase("text"); branchNode.SetAttribute(CellAttribute.Body, body); branchNode.SetAttribute(CellAttribute.EndTag, "</leaftag>"); branchNode.SetAttribute(CellAttribute.StartTag, "<leaftag>"); source.AddBranchValue(branchNode); }
static Tree <string> NodeParameters(XmlNode node) { var result = new TreeList <string>() .AddBranchValue(node.InnerText); foreach (XmlAttribute attribute in node.Attributes) { result.AddBranchValue(attribute.Value); } return(result); }
private string ExecuteInstruction(string instruction) { Document document = Document.Parse(instruction); var results = new TreeList <string>(); foreach (Tree <string> statement in document.Content.Branches) { results.AddBranchValue(service.Execute(statement).Value); } return(new Document(results).ToString()); }
static void AddBranch(TreeList<CellBase> source, string body) { var branchNode = new CellBase("text"); branchNode.SetAttribute(CellAttribute.Body, body); branchNode.SetAttribute(CellAttribute.EndTag, "</leaftag>"); branchNode.SetAttribute(CellAttribute.StartTag, "<leaftag>"); source.AddBranchValue(branchNode); }