How to set content to a component without loading XML in SDL Tridion using core services?
How do I set content to a component without loading XML in SDL Tridion using core services? If you are looking to create a regular Component through the Core Service, you can avoid having to craft the XML yourself by using this helper class . With this you can create a Component like this: schemaFields = client.ReadSchemaFields("tcm:1-2-8", true, DEFAULT_READ_OPTIONS); component = (ComponentData)client.GetDefaultData(ItemType.Component, "tcm:1-57-2"); fields = Fields.ForContentOf(schemaFields); component.Title = "Name of component (created at "+ DateTime.Now + ")"; fields["Title"].Value =