How to change the custom metadata fields in an XML file

Example XML file with comments

<?xml version="1.0"?> 

<!--the row above and this part below should not change--> 

<mrss xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ingestion.xsd"> 
<channel> 
<item> 
<action>update</action> 

<!--here you determine the entry ID you want to update--> 

<entryId>0_bukomjmo</entryId> 

<!--name and description are textual values with little to none limitations (maybe just the length)--> 

<name>TEST</name> 
<description>TEST</description> 

<!--only in the category part, write the categories by their accurate names. to show categories hierarchy, start with the highest one and put the > sign between them with no spaces. you can add or remove as much <category>XXX</category> fields as you wish. If the categories do not exist, like in the second example, they will be created--> 

<categories> 
<category>Events>2014</category> 
<category>Events>TEST</category> 
</categories> 

<!--these fields below should also not change, unless you want to set a different custom metadataProfileId--> 

<customDataItems> 
<customData metadataProfileId="906921"> 
<xmlData> 
<metadata> 



<!-- these are textual fields, but note that in your metadata profile the 'event' and 'page' values are limited to one character--> 

<Event>1</Event> 
<Page>1</Page> 

<!-- 'rider' and 'horse' are unlimited textual files--> 

<Rider>TEST</Rider> 
<Horse>TEST</Horse> 

<!--'Disciplines' is a field the is chosen from a list of values, meaning that if you will not choose a value from the list the file will fail completely--> 

<Disciplines>Arabian</Disciplines> 

<!--this part below should also not change--> 
</metadata> 
</xmlData> 
</customData> 
</customDataItems> 
</item> 
</channel> 
</mrss> 



You can remove the line containing the field you do no want to update the file.

Example XML file without the "event " field with comments

 

The following is an example of an XML file without the 'Event' field. The fields that are necessary are the action and entryId. 

<!--
the row above and this part below should not change
-->
<mrss xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ingestion.xsd">
<channel>
<item>
<action>update</action>
<!-- here you determine the entry ID you want to update -->
<entryId>0_bukomjmo</entryId>
<!--
name and description are textual values with little to none limitations (maybe just the length)
-->
<name>TEST</name>
<description>TEST</description>
<!--
only in the category part, write the categories by their accurate names. to show categories hierarchy, start with the highest one and put the > sign between them with no spaces. you can add or remove as much <category>XXX</category> fields as you wish. If the categories do not exist, like in the second example, they will be created
-->
<categories>
<category>Events>2014</category>
<category>Events>TEST</category>
</categories>
<!--
these fields below should also not change, unless you want to set a different custom metadataProfileId
-->
<customDataItems>
<customData metadataProfileId="906921">
<xmlData>
<metadata>
<!--
 these are textual fields, but note that in your metadata profile the 'event' and 'page' values are limited to one character
-->
<Page>1</Page>
<!--  'rider' and 'horse' are unlimited textual files -->
<Rider>TEST</Rider>
<Horse>TEST</Horse>
<!--
'Disciplines' is a field the is chosen from a list of values, meaning that if you will not choose a value from the list the file will fail completely
-->
<Disciplines>Arabian</Disciplines>
<!-- this part below should also not change -->
</metadata>
</xmlData>
</customData>
</customDataItems>
</item>
</channel>
</mrss>

If you want to remove all the custom metadata fields, you will need to remove all the rows between <customDataItems> and it's closure </customDataItems>. 

In This Article
Was this article helpful?
Thank you for your feedback!