Display XML Feed Text in One Line in a Ticker RRS feed

  • Question

  • Hello,

    I am having a problem display a feed in a ticker. Here is my code:

    Private Sub NOAA_Alerts()
            Using WB As New WebClient
    WB.Headers.Add(HttpRequestHeader.Accept, "application/atom+xml")
                    Dim WXData As String = WB.DownloadString($"{My.Settings.Wx_Alerts}")
                    If WXData <> LastWXData Then
                        LastWXData = WXData
                        Dim TitleList As XmlNodeList = XmlDoc.GetElementsByTagName("title")
                        Dim CapEvents As XmlNodeList = XmlDoc.GetElementsByTagName("cap:event")
                        Dim SummaryList As XmlNodeList = XmlDoc.GetElementsByTagName("summary")
                        Label31.Text = SummaryList(0).InnerText
                        Label30.Text = CapEvents(0).InnerText
                    End If
                Catch ex As Exception
                End Try
            End Using
        End Sub
        Dim LastWXData As String = ""

    The text that is displayed is correct. However, the words go to the next line and since the ticker is a text scroll, it needs to be in one line. How can I tell the program to keep all text in one line?

    The code above is to get the feed from the National Weather Service.

    Thank You!

    Tuesday, April 23, 2019 3:43 AM

All replies