LOCAL lcXML TEXT TO lcXML NOSHOW <messages> <message to="you"> <body>Body Goes Here</body> </message> <message to="me"> <body>Body of Message number 2</body> </message> </messages> ENDTEXT * Create the parser object loXML = CREATEOBJECT('msxml2.domdocument') loXML.async = .F. * Load teh XML loXML.loadXML(lcXML) * Loop through all the messages, request the Body element, and read its text loMessages = loXML.documentElement.selectNodes('message') FOR EACH loMessage IN loMessages loBody = loMessage.selectSingleNode('body') ?loBody.text * Replace the Body with info about the recipient loBody.text = 'Here is the new message for ' + loMessage.getAttribute("to") lcXML = loXML.xml ENDFOR * Display the new XML ?lcXMLIf you any questions on this in general, or a specific part, I'd be happy to clarify the code.