loXml = NEWOBJECT("MSXML2.DomDocument") loXml.async = .F. IF loXml.load("x.xml") * pulling the price from the 'c' section in your example lcPrice = loXml.documentElement.selectSingleNode("//datafield[@tag='260']/subfield[@code='c']").text ENDIFThere are extra things you need to check for to make it robust, i.e. that selectSingleNode returned an object, that the object has elements. Where most people get stuck is not realising they can nest the query information.