It is possible to import tags as part of an import of a taxonomy document (nodetype = sophora-nt:enhancedTag). If you want to import taxonomy tags, you have to add a <taxonomyTags> element as last element to the <fields> element in your XML file. Inside this wrapper element, you then place <taxonomyTag> elements for each tag to import. Adding the <taxonomyTags> element to documents of other types than nodetype = sophora-nt:enhancedTag is considered as invalid Sophora XML by the Sophora Importer. It is possible to import tags for new documents, in combination with changes to an existing taxonomy document and without changes to the existing taxonomy document itself.
The following XML shows all available properties for tags. As shown by the further down part for countries, only label must be given. All other elements are optional and can be omitted.
<?xml version="1.0" encoding="UTF-8"?> <documents xmlns="http://www.sophoracms.com/import/6.2">
<document nodeType="sophora-nt:enhancedTag" externalID="taxonomy_cities">
<properties>
<property name="sophora:name">
<value>Cities</value>
</property>
</properties>
<childNodes>
<childNode nodeType="sophora-nt:yellowData" name="sophora:yellowData">
<properties />
<childNodes />
<resourceList />
</childNode>
</childNodes>
<resourceList />
<fields>
<site>system</site>
<structureNode>/</structureNode>
<idstem>test-importer</idstem>
<forceLock>true</forceLock>
<forceCreate>false</forceCreate>
<channels>
<enabledChannels></enabledChannels>
<disabledChannels></disabledChannels>
</channels>
<taxonomyTags>
<taxonomyTag>
<id>taxo_london</id>
<label>London</label>
<blocked>false</blocked>
<synonyms>
<synonym>LON</synonym>
</synonyms>
<types>
<type>city</type>
</types>
</taxonomyTag>
<taxonomyTag>
<id>taxo_amsterdam</id>
<label>Amsterdam</label>
<blocked>false</blocked>
<synonyms>
<synonym>AMS</synonym>
</synonyms>
<types>
<type>city</type>
</types>
</taxonomyTag>
</taxonomyTags>
</fields>
<instructions>
<lifecycleActivities />
<proposals />
<stickyNotes />
</instructions>
</document>
</documents>