Steve,
VFP7 should do this handily. VFP6 and before can use code in wwxml.vcx from Rick Strahl's West-Wind website.
>Does anyone have any handy do-all functions for purifying a string so that it will fit into an XML document? Strip out/convert < and etc?