Esempio n. 1
0
 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;
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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());
        }
Esempio n. 5
0
 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);
 }