What about a generic GetChildElementText() function?
Function GetChildElementText( parentElement As Object, childName As String, defaultValue = "" As String ) As String
child = parentElement.GetNamedElements( childName )
If child <> invalid and child.Count() > 0 Then
Return child.GetText()
Else
Return defaultValue
End If
End Function
Then your code can be simplified to:
m.TrackURL = GetChildElementText( track, "stream-url" )
m.TrackGenre = GetChildElementText( track, "genre" )
m.TrackDescription = GetChildElementText( track, "description" )
m.TrackCreated = GetChildElementText( track, "created-at" )
m.WaveformURL = GetChildElementText( track, "waveform-url" )
m.ArtworkURL = GetChildElementText( track, "artwork-url" )
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)