loXML=CREATEOBJECT("Microsoft.XMLDOM") loXML.async = .F. loXML.SetProperty("SelectionLanguage","XPath") *loXML.Load(m.lcPath+"terry.xml") *loXML.LoadXML(m.lcXML) * Return all nodes that have attribute "program" loXX=m.loXML.documentElement.selectNodes('schedule/[@program]') FOR lii=0 TO loXX.length-1 ?loXX.Item(lii).Item(0).GetAttribute("time")) NEXT * Return all nodes that have attribute "program" with value P1877110087 loXX=m.loXML.documentElement.selectNodes('schedule/[@program="EP1877110087"]') FOR lii=0 TO loXX.length-1 ?loXX.Item(lii).Item(0).GetAttribute("time")) NEXTMartinJ
><schedule program='EP1877110087' station='19211' time='2004-11-19T23:00:00Z' duration='PT00H30M' stereo='true' closeCaptioned='true'/> ><schedule program='EP1877110088' station='19211' time='2004-11-19T23:30:00Z' duration='PT00H30M' stereo='true' closeCaptioned='true'/> ><schedule program='EP0174130101' station='19211' time='2004-11-20T00:00:00Z' duration='PT00H30M' stereo='true' closeCaptioned='true'/> ><schedule program='EP0174130102' station='19211' time='2004-11-20T00:30:00Z' duration='PT00H30M' stereo='true' closeCaptioned='true'/> ><schedule program='MV0782170000' station='19211' time='2004-11-20T01:00:00Z' duration='PT02H00M'/> >>Can anyone help me out here?