A basic holder class for Elements we are building for our TwiML Response.
        private XElement CreateXmlFromElement(TwiMLBuilderElement elem)
        {
            // Create the verb node.
            var root = CreateXmlFromVerb(elem.Verb);

            // Add any children.
            foreach (var childElem in elem.Children)
            {
                root.Add(CreateXmlFromVerb(childElem));
            }

            return(root);
        }
예제 #2
0
        private XElement CreateXmlFromElement(TwiMLBuilderElement elem)
        {
            // Create the verb node.
            var root = CreateXmlFromVerb(elem.Verb);

            // Add any children.
            foreach (var childElem in elem.Children)
            {
                root.Add(CreateXmlFromVerb(childElem));
            }

            return root;
        }