The Extensible Metadata Platform (XMP) is an XML-based ISO metadata standard, originally created by Adobe Systems Inc. It defines a data structure, serialization model and basic metadata properties intended to form a unified metadata package that can be embedded into different media formats. The defined XMP data model can be used to store any set of metadata properties. These can be simple name/value pairs, structured values or lists of values. The data can be nested as well.
To access XMP metadata in a file of any supported format, GroupDocs.Metadata provides the IXmp.getXmpPackage method. The following are the steps to read XMP metadata:
Load a file that contains XMP metadata
Extract the XMP metadata package using the IXmp.getXmpPackage method
The following code snippet gets XMP properties of a PNG image and displays them on the screen.
GroupDocs.Metadata also provides an API allowing users to work with fully custom XMP schemes/packages. Please refer to this code snippet to learn more.
Removing XMP metadata
To remove the XMP package from a file just pass null to the IXmp.setXmpPackage method as a parameter. The code sample below shows how to remove XMP metadata from a file.