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?

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