Reads XMP data from the input documents and adds it to the document metadata with the specified options.
- Namespace
- Statiq
.Xmp - Containing Type
- ReadXmp
Syntax
public ReadXmp(bool skipElementOnMissingMandatoryData = false, bool errorsOnDoubleKeys = true, bool delocalizing = true, bool flatten = true)
Parameters
Name | Type | Description |
---|---|---|
skipElementOnMissingMandatoryData | bool | If mandatory data is missing, the element will be skipped. |
errorsOnDoubleKeys | bool | If true (the default), an error will be produced if the XML metadata would overwrite existing
document metadata. If false , the XMP metadata overrides the existing metadata. |
delocalizing | bool | If true (the default), when multiple elements with different languages are present, the local language will be used to choose the correct element. |
flatten | bool | If true (the default), when an array has only one element the output metadata is reduced to the single element. |