Forum Discussion

SolveLLC's avatar
SolveLLC
Visitor
14 years ago

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">

1 Reply

  • 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