I am trying to remove the value of one field from my component through core service. Consider I have a field removeme in my component.
I have tried
ComponentData c = client.Read("tcm:30-47499", new ReadOptions()) as ComponentData; // Console.WriteLine("Component source:" + c.Content); System.Xml.XmlDocument doc = new System.Xml.XmlDocument(); doc.LoadXml(c.Content); System.Xml.XmlNodeList elemList = doc.GetElementsByTagName("removeme"); doc.RemoveChild(elemList);
I want to remove the field removeme from component and save it.
Could some one tell me how to do that.