Remove All Metadata from an FTML Map - Fluid Topics - 3.5 - Technical Notes

Upload FTML Content to Fluid Topics

Product
Fluid Topics
Fluid Topics Version
3.5
Category
Technical Notes
Language
English
Target Audience
public

It is possible to remove the metadata previously associated with an FTML publication.

Metadata removal is irreversible.

The following lines show how to remove metadata using the @metaAction attribute in the ft:khubItem element and an empty ft:metas element:

<?xml version="1.0" encoding="UTF-8"?>
<ft:controlFile xmlns:ft="http://ref.fluidtopics.com/v3/ft#">
<ft:khubItems>
<ft:khubItem type="map" ft:originID="map_id" metaAction="replace">
<ft:metas/>
</ft:khubItem>
</ft:khubItems>
</ft:controlFile>

As the @metaAction attribute is set to replace with no new metadata defined in ft:metas, all the previous metadata are deleted.

Semantic metadata, beginning with ft: prefix, can be modified but cannot be removed.

Example

...

<ft:metas>

<ft:meta key="ft:author">John Doe</ft:meta>

<ft:meta key="product" type="stringTree">Antidot|Fluid Topics</ft:meta>

</ft:meta>

...

If ft:metas is empty with the @metaAction attribute set to replace, product information will be deleted but ft:author will be kept.



- If the ft:metas element is not present, no action is performed on the document's metadata.

- There is no need to reupload the content to modify the metadata of an FT map.