Bandwidth.Standard/Voice/Bxml/Response.cs
/// <summary>
///   Returns BXML for response without escaped SSML
/// </summary>
/// <returns>Generated XML string</returns>
Returns BXML for response without escaped SSML
Returns BXML for response without escaped SSML
public string ToBXML()
        {
            string str = "";
            using (var writer = new Utf8StringWriter { NewLine = "" })
            {
                Serializer.Serialize(writer, this);
                str =  writer.ToString();
            }
            MatchEvaluator matchEvaluator = new MatchEvaluator(match => 
                XML_REGEX.Replace(match.Value, "<$1>")
            );
            return SPEAK_SENTENCE_REGEX.Replace(str, matchEvaluator);
        }
public string ToBXML ( ) { string str = " " ; using ( var writer = new Utf8StringWriter { NewLine = " " } ) { Serializer . Serialize ( writer , this ) ; str = writer . ToString ( ) ; } MatchEvaluator matchEvaluator = new MatchEvaluator ( match => XML_REGEX . Replace ( match . Value , " " ) ) ; return SPEAK_SENTENCE_REGEX . Replace ( str , matchEvaluator ) ; }
Returns BXML for response without escaped SSML
Returns BXML for response without escaped SSML
Generated XML string
Generated XML string