Sample Content List XML File

This XML code makes up a sample XML file for importing records into a content list. In this case, the content list has two text fields called Title and Author, and a number field called Rank.

Required Editions

Available in: Salesforce Classic

Available for purchase in: Enterprise, Performance, and Unlimited Editions

Available (with limitations) in: Developer Edition

Note
Note Content lists and categories are currently available through a pilot program. For information on enabling content lists and categories for your organization, contact Salesforce.

For more information about the required XML format, see Content List XML Format.

<?xml version="1.0" encoding="UTF-8"?>
<records>
   <record>
      <field name="Title">Latest Company News</field>
      <field name="Author">Madison Rigsby</field>
      <field name="Rank">1</field>
   </record>
   <record>
      <field name="Title">Upcoming Developer Sessions</field>
      <field name="Author">Ian Thompson</field>
      <field name="Rank">2</field>
   </record>
</records>
Tip
Tip Special characters such as < and & are illegal in XML elements. To ensure any text values don’t cause a parser error, you can wrap them inside a <![CDATA[Your text value]]> section. For example:
<field name="Title"><![CDATA[Company News & Highlights]]></field>