
SolveLLC
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2012
06:04 AM
Parse XML
I've got a pretty simple question. I need to parse an xml file and get the value of "zone". Could someone show me a code example?
<messageschedule zone="zone1">
<messageschedule zone="zone1">
1 REPLY 1

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2012
06:39 AM
Re: Parse XML
That's not technically valid XML, as there's not closing tag, but assuming you actually meant there to be one...
zone = ""
xmlString = "<messageschedule zone='zone1' />"
xml = CreateObject("roXmlElement")
If xml.Parse(xmlString) Then
zone = xml@zone
End If
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)