I have a very generic "GetItemXml" template building block that basically reads the current item being rendered and outputs the item's xml to the delivery tier.
Component component = (Component)engine.GetObject(package.GetByName(Package.ComponentName));
output = package.CreateXmlDocumentItem(
ContentType.Xml,component.ToXml(XmlFormat.R6Native, XmlSections.All)
.OwnerDocument);
This outputs the xml correctly, but keyword fields are output like this:
<ContentCategory>tridion</ContentCategory>
<ContentCategory>tridion2009</ContentCategory>
Is there any way - short of controlling the XML output myself - to ask Tridion to include additional information in the XML like an xlink:href to the keyword ID?