public static void ItemsInList(List<string> list, VxmlElement element, VxmlAttribute attribute, ConsoleColor color) { var count = 0; foreach (var item in list) { Log.Print(string.Format("{3} | {0}-{1}: '{2}'", element, attribute, item, ++count), color); } }
public static void ItemsInList(List <string> list, VxmlElement element, VxmlAttribute attribute, ConsoleColor color) { var count = 0; foreach (var item in list) { Log.Print(string.Format("{3} | {0}-{1}: '{2}'", element, attribute, item, ++count), color); } }
private string FindNextPage(string vxml, VxmlElement parentElement, VxmlAttribute attribute) { var attributeText = string.Empty; using (var stringReader = new StringReader(vxml)) using (var xmlReader = XmlReader.Create(stringReader)) { do { if (xmlReader.ReadToFollowing(parentElement.Name)) { attributeText = xmlReader.GetAttribute(attribute.AttributeName); } } while (!attributeText.Contains("hangup")); if (xmlReader.ReadToDescendant(VxmlElement.GoTo.Name)) { attributeText = xmlReader.GetAttribute(VxmlAttribute.Next.AttributeName); } } return(attributeText); }
private List<string> GetAttributeFromAllElements(string vxml, VxmlElement element, VxmlAttribute attribute) { var options = new List<string>(); using (var xmlReader = XmlReader.Create(new StringReader(vxml))) { while (xmlReader.ReadToFollowing(element.Name)) { var attributeText = xmlReader.GetAttribute(attribute.AttributeName); options.Add(attributeText); } } return options; }
private string FindNextPage(string vxml, VxmlElement parentElement, VxmlAttribute attribute) { var attributeText = string.Empty; using (var stringReader = new StringReader(vxml)) using (var xmlReader = XmlReader.Create(stringReader)) { do { if (xmlReader.ReadToFollowing(parentElement.Name)) { attributeText = xmlReader.GetAttribute(attribute.AttributeName); } } while (!attributeText.Contains("hangup")); if (xmlReader.ReadToDescendant(VxmlElement.GoTo.Name)) { attributeText = xmlReader.GetAttribute(VxmlAttribute.Next.AttributeName); } } return attributeText; }
private List <string> GetAttributeFromAllElements(string vxml, VxmlElement element, VxmlAttribute attribute) { var options = new List <string>(); using (var xmlReader = XmlReader.Create(new StringReader(vxml))) { while (xmlReader.ReadToFollowing(element.Name)) { var attributeText = xmlReader.GetAttribute(attribute.AttributeName); options.Add(attributeText); } } return(options); }