I'm getting the content from a component and in this content I have a field that represents a keyword. How could I get the tcm from that keyword? "etiquetas" field is my keywords.
<destacado_evento xmlns="uuid:65081b19-5ae5-4e3e-a9d0-371ce48b0694">
<titulo>Evento Skyfall</titulo>
<imagen xlink:type="simple" xlink:href="tcm:12-3580" xlink:title="Multimedia Ficha Evento" xmlns:xlink="http://www.w3.org/1999/xlink" />
<etiquetas>Nuestros compromisos</etiquetas>
<fecha_inicio>2016-04-07T14:36:33</fecha_inicio>
<fecha_fin>2016-04-16T20:00:48</fecha_fin>
</destacado_evento>
The problem is that I don't know the category. I get that information from:
foreach (ItemFieldDefinitionData field in schema.Fields)
{
XmlElement schemaFields = contenidoComponentes.CreateElement(field.Name);
schemaFields.InnerText = field.Description;
schemaNode.AppendChild(schemaFields);
}