Solved my own problem using the below code snippet:
XPathNodeIterator contactList = DataSources["myDataSource"].CreateNavigator().Select("xmlPath", NamespaceManager);
foreach (XPathNavigator contact in contactList)
{
string field = contact.SelectSingleNode("myFieldName", NamespaceManager).Value.Replace("string;#", "");
contact.SelectSingleNode("myFieldName").SetValue(field);
}