From f027478e36f7d159cd8dd1d49539e2985d477d4d Mon Sep 17 00:00:00 2001
From: Stefan Oltmann <github@stefan-oltmann.de>
Date: Wed, 13 Dec 2023 00:15:11 +0100
Subject: [PATCH] Improved handling of files with errors (#16)

* Enabled Detekt for project

* Extract method

* Ignored doubled childs and qualifiers

* Commented sample_50.xmp and also avoid errors on files with comments.

* Added another test file that triggers a problem

* Fixed possible NullPointerException in XMPNormalizer

* Ignore empty about=''

* Failed test should point to problematic sample file

* Better info on failed XML read

* Skip unit tests for problematic files on iOS + reformatting

* Removed comments from sample files as this was the problem.

* Bumped version
---
 .idea/detekt.xml                              |   2 +
 README.md                                     |   2 +-
 .../kotlin/com/ashampoo/xmp/DomParser.kt      |   2 +-
 .../kotlin/com/ashampoo/xmp/XMPIterator.kt    |   4 +-
 .../kotlin/com/ashampoo/xmp/XMPMeta.kt        |  18 +-
 .../kotlin/com/ashampoo/xmp/XMPMetaParser.kt  |   6 +
 .../kotlin/com/ashampoo/xmp/XMPNode.kt        |  32 +-
 .../kotlin/com/ashampoo/xmp/XMPNodeUtils.kt   |   6 +-
 .../kotlin/com/ashampoo/xmp/XMPNormalizer.kt  |  37 +-
 .../kotlin/com/ashampoo/xmp/XMPRDFParser.kt   |  36 +-
 .../kotlin/com/ashampoo/xmp/XMPRDFWriter.kt   |   8 -
 .../com/ashampoo/xmp/xpath/XMPPathParser.kt   |   2 +-
 .../kotlin/com/ashampoo/xmp/RewriteXmpTest.kt |  54 +-
 .../kotlin/com/ashampoo/xmp/UtilsTest.kt      |   1 -
 .../kotlin/com/ashampoo/xmp/WriteXmpTest.kt   |   3 -
 .../resources/com/ashampoo/xmp/README         |  13 +
 .../resources/com/ashampoo/xmp/sample_50.xmp  | 107 ++-
 .../xmp/sample_50_formatted_canonical.xmp     |  69 +-
 .../xmp/sample_50_formatted_compact.xmp       |  67 +-
 .../resources/com/ashampoo/xmp/sample_51.xmp  | 313 ++------
 .../xmp/sample_51_formatted_canonical.xmp     | 276 ++------
 .../xmp/sample_51_formatted_compact.xmp       | 257 ++-----
 .../resources/com/ashampoo/xmp/sample_52.xmp  | 669 +++++++++++-------
 .../xmp/sample_52_formatted_canonical.xmp     | 545 ++++++++------
 .../xmp/sample_52_formatted_compact.xmp       | 484 ++++++++-----
 25 files changed, 1580 insertions(+), 1433 deletions(-)
 create mode 100644 src/commonTest/resources/com/ashampoo/xmp/README

diff --git a/.idea/detekt.xml b/.idea/detekt.xml
index 5ac0d84..86fb510 100644
--- a/.idea/detekt.xml
+++ b/.idea/detekt.xml
@@ -11,6 +11,8 @@
         <option value="$PROJECT_DIR$/detekt.yml" />
       </list>
     </option>
+    <option name="enableDetekt" value="true" />
+    <option name="enableForProjectResult" value="Accepted" />
     <option name="enableFormatting" value="true" />
   </component>
   <component name="DetektProjectConfiguration">
diff --git a/README.md b/README.md
index 6c8068b..52ffcd5 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@ It's part of [Ashampoo Photos](https://ashampoo.com/photos).
 ## Installation
 
 ```
-implementation("com.ashampoo:xmpcore:0.2.3")
+implementation("com.ashampoo:xmpcore:0.2.4")
 ```
 
 ## How to use
diff --git a/src/commonMain/kotlin/com/ashampoo/xmp/DomParser.kt b/src/commonMain/kotlin/com/ashampoo/xmp/DomParser.kt
index 8483076..10b1158 100644
--- a/src/commonMain/kotlin/com/ashampoo/xmp/DomParser.kt
+++ b/src/commonMain/kotlin/com/ashampoo/xmp/DomParser.kt
@@ -36,7 +36,7 @@ object DomParser {
             return writer.target
 
         } catch (ex: Exception) {
-            throw XMPException("Error reading the XML-file", XMPError.BADSTREAM, ex)
+            throw XMPException("Error reading the XML file: ${ex.message}", XMPError.BADSTREAM, ex)
         }
     }
 }
diff --git a/src/commonMain/kotlin/com/ashampoo/xmp/XMPIterator.kt b/src/commonMain/kotlin/com/ashampoo/xmp/XMPIterator.kt
index 7f3c9d4..d964ca3 100644
--- a/src/commonMain/kotlin/com/ashampoo/xmp/XMPIterator.kt
+++ b/src/commonMain/kotlin/com/ashampoo/xmp/XMPIterator.kt
@@ -10,11 +10,11 @@ package com.ashampoo.xmp
 
 import com.ashampoo.xmp.XMPNodeUtils.findNode
 import com.ashampoo.xmp.XMPNodeUtils.findSchemaNode
-import com.ashampoo.xmp.xpath.XMPPath
-import com.ashampoo.xmp.xpath.XMPPathParser.expandXPath
 import com.ashampoo.xmp.options.IteratorOptions
 import com.ashampoo.xmp.options.PropertyOptions
 import com.ashampoo.xmp.properties.XMPPropertyInfo
+import com.ashampoo.xmp.xpath.XMPPath
+import com.ashampoo.xmp.xpath.XMPPathParser.expandXPath
 
 /**
  * Interface for the `XMPMeta` iteration services.
diff --git a/src/commonMain/kotlin/com/ashampoo/xmp/XMPMeta.kt b/src/commonMain/kotlin/com/ashampoo/xmp/XMPMeta.kt
index b0ee4d9..8695ea3 100644
--- a/src/commonMain/kotlin/com/ashampoo/xmp/XMPMeta.kt
+++ b/src/commonMain/kotlin/com/ashampoo/xmp/XMPMeta.kt
@@ -8,14 +8,6 @@
 // =================================================================================================
 package com.ashampoo.xmp
 
-import com.ashampoo.xmp.XMPPathFactory.composeArrayItemPath
-import com.ashampoo.xmp.XMPPathFactory.composeQualifierPath
-import com.ashampoo.xmp.XMPPathFactory.composeStructFieldPath
-import com.ashampoo.xmp.XMPUtils.convertToBoolean
-import com.ashampoo.xmp.XMPUtils.convertToDouble
-import com.ashampoo.xmp.XMPUtils.convertToInteger
-import com.ashampoo.xmp.XMPUtils.convertToLong
-import com.ashampoo.xmp.XMPUtils.decodeBase64
 import com.ashampoo.xmp.Utils.normalizeLangValue
 import com.ashampoo.xmp.XMPNodeUtils.appendLangItem
 import com.ashampoo.xmp.XMPNodeUtils.chooseLocalizedText
@@ -24,12 +16,20 @@ import com.ashampoo.xmp.XMPNodeUtils.findNode
 import com.ashampoo.xmp.XMPNodeUtils.setNodeValue
 import com.ashampoo.xmp.XMPNodeUtils.verifySetOptions
 import com.ashampoo.xmp.XMPNormalizer.normalize
-import com.ashampoo.xmp.xpath.XMPPathParser.expandXPath
+import com.ashampoo.xmp.XMPPathFactory.composeArrayItemPath
+import com.ashampoo.xmp.XMPPathFactory.composeQualifierPath
+import com.ashampoo.xmp.XMPPathFactory.composeStructFieldPath
+import com.ashampoo.xmp.XMPUtils.convertToBoolean
+import com.ashampoo.xmp.XMPUtils.convertToDouble
+import com.ashampoo.xmp.XMPUtils.convertToInteger
+import com.ashampoo.xmp.XMPUtils.convertToLong
+import com.ashampoo.xmp.XMPUtils.decodeBase64
 import com.ashampoo.xmp.options.IteratorOptions
 import com.ashampoo.xmp.options.ParseOptions
 import com.ashampoo.xmp.options.PropertyOptions
 import com.ashampoo.xmp.properties.XMPProperty
 import com.ashampoo.xmp.properties.XMPPropertyInfo
+import com.ashampoo.xmp.xpath.XMPPathParser.expandXPath
 
 /**
  * This class represents the set of XMP metadata as a DOM representation. It has methods to read and
diff --git a/src/commonMain/kotlin/com/ashampoo/xmp/XMPMetaParser.kt b/src/commonMain/kotlin/com/ashampoo/xmp/XMPMetaParser.kt
index 8e7924b..d9d2101 100644
--- a/src/commonMain/kotlin/com/ashampoo/xmp/XMPMetaParser.kt
+++ b/src/commonMain/kotlin/com/ashampoo/xmp/XMPMetaParser.kt
@@ -10,6 +10,7 @@ package com.ashampoo.xmp
 
 import com.ashampoo.xmp.XMPNormalizer.normalize
 import com.ashampoo.xmp.options.ParseOptions
+import nl.adaptivity.xmlutil.dom.Comment
 import nl.adaptivity.xmlutil.dom.Element
 import nl.adaptivity.xmlutil.dom.Node
 import nl.adaptivity.xmlutil.dom.ProcessingInstruction
@@ -117,6 +118,11 @@ internal object XMPMetaParser {
                 if (result != null)
                     result[2] = child.getData()
 
+            } else if (child is Comment) {
+
+                /* We ignore comments. */
+                continue
+
             } else if (child !is Text && child !is ProcessingInstruction) {
 
                 val childElement = child as Element
diff --git a/src/commonMain/kotlin/com/ashampoo/xmp/XMPNode.kt b/src/commonMain/kotlin/com/ashampoo/xmp/XMPNode.kt
index 3c42f5b..e4fe0c1 100644
--- a/src/commonMain/kotlin/com/ashampoo/xmp/XMPNode.kt
+++ b/src/commonMain/kotlin/com/ashampoo/xmp/XMPNode.kt
@@ -64,7 +64,9 @@ class XMPNode(
 
     fun addChild(node: XMPNode) {
 
-        assertChildNotExisting(node.name!!)
+        /* Ignore doubled childs. */
+        if (childExists(node.name!!))
+            return
 
         node.parent = this
 
@@ -73,7 +75,9 @@ class XMPNode(
 
     fun addChild(index: Int, node: XMPNode) {
 
-        assertChildNotExisting(node.name!!)
+        /* Ignore doubled childs. */
+        if (childExists(node.name!!))
+            return
 
         node.parent = this
 
@@ -146,7 +150,9 @@ class XMPNode(
 
     fun addQualifier(qualNode: XMPNode) {
 
-        assertQualifierNotExisting(qualNode.name!!)
+        /* Ignore doubled qualifiers. */
+        if (qualifierExists(qualNode.name!!))
+            return
 
         qualNode.parent = this
         qualNode.options.setQualifier(true)
@@ -305,21 +311,9 @@ class XMPNode(
         return qualifier!!
     }
 
-    /**
-     * Checks that a node name is not existing on the same level, except for array items.
-     */
-    private fun assertChildNotExisting(childName: String) {
-
-        if (XMPConst.ARRAY_ITEM_NAME != childName && findChildByName(childName) != null)
-            throw XMPException("Duplicate property or field node '$childName'", XMPError.BADXMP)
-    }
+    private fun childExists(childName: String): Boolean =
+        XMPConst.ARRAY_ITEM_NAME != childName && findChildByName(childName) != null
 
-    /**
-     * Checks that a qualifier name is not existing on the same level.
-     */
-    private fun assertQualifierNotExisting(qualifierName: String) {
-
-        if (XMPConst.ARRAY_ITEM_NAME != qualifierName && findQualifierByName(qualifierName) != null)
-            throw XMPException("Duplicate '$qualifierName' qualifier", XMPError.BADXMP)
-    }
+    private fun qualifierExists(qualifierName: String): Boolean =
+        XMPConst.ARRAY_ITEM_NAME != qualifierName && findQualifierByName(qualifierName) != null
 }
diff --git a/src/commonMain/kotlin/com/ashampoo/xmp/XMPNodeUtils.kt b/src/commonMain/kotlin/com/ashampoo/xmp/XMPNodeUtils.kt
index 182db23..4cf9e40 100644
--- a/src/commonMain/kotlin/com/ashampoo/xmp/XMPNodeUtils.kt
+++ b/src/commonMain/kotlin/com/ashampoo/xmp/XMPNodeUtils.kt
@@ -8,14 +8,14 @@
 // =================================================================================================
 package com.ashampoo.xmp
 
-import com.ashampoo.xmp.XMPUtils.encodeBase64
 import com.ashampoo.xmp.Utils.normalizeLangValue
 import com.ashampoo.xmp.Utils.replaceControlCharsWithSpace
 import com.ashampoo.xmp.Utils.splitNameAndValue
-import com.ashampoo.xmp.xpath.XMPPath
-import com.ashampoo.xmp.xpath.XMPPathSegment
+import com.ashampoo.xmp.XMPUtils.encodeBase64
 import com.ashampoo.xmp.options.AliasOptions
 import com.ashampoo.xmp.options.PropertyOptions
+import com.ashampoo.xmp.xpath.XMPPath
+import com.ashampoo.xmp.xpath.XMPPathSegment
 
 /**
  * Utilities for `XMPNode`.
diff --git a/src/commonMain/kotlin/com/ashampoo/xmp/XMPNormalizer.kt b/src/commonMain/kotlin/com/ashampoo/xmp/XMPNormalizer.kt
index 64cab72..8c589d8 100644
--- a/src/commonMain/kotlin/com/ashampoo/xmp/XMPNormalizer.kt
+++ b/src/commonMain/kotlin/com/ashampoo/xmp/XMPNormalizer.kt
@@ -9,9 +9,9 @@
 package com.ashampoo.xmp
 
 import com.ashampoo.xmp.Utils.checkUUIDFormat
-import com.ashampoo.xmp.xpath.XMPPathParser.expandXPath
 import com.ashampoo.xmp.options.ParseOptions
 import com.ashampoo.xmp.options.PropertyOptions
+import com.ashampoo.xmp.xpath.XMPPathParser.expandXPath
 
 internal object XMPNormalizer {
 
@@ -230,20 +230,16 @@ internal object XMPNormalizer {
 
         val strictAliasing = options.getStrictAliasing()
 
-        val schemaIt: Iterator<XMPNode> = tree.iterateChildren()
-
-        while (schemaIt.hasNext()) {
+        val schemas = tree.iterateChildren().asSequence().toList()
 
-            val currSchema = schemaIt.next()
+        for (currSchema in schemas) {
 
             if (!currSchema.hasAliases)
                 continue
 
-            val propertyIt = currSchema.iterateChildrenMutable()
+            val properties = currSchema.iterateChildrenMutable().asSequence().toList()
 
-            while (propertyIt.hasNext()) {
-
-                val currProp = propertyIt.next()
+            for (currProp in properties) {
 
                 if (!currProp.isAlias)
                     continue
@@ -282,7 +278,8 @@ internal object XMPNormalizer {
                             baseSchema.addChild(currProp)
 
                             // remove the alias property
-                            propertyIt.remove()
+
+                            currSchema.removeChild(currProp)
 
                         } else {
 
@@ -296,7 +293,9 @@ internal object XMPNormalizer {
 
                             baseSchema.addChild(baseNode)
 
-                            transplantArrayItemAlias(propertyIt, currProp, baseNode)
+                            transplantArrayItemAlias(currProp, baseNode) {
+                                currSchema.removeChild(currProp)
+                            }
                         }
 
                     } else if (info.getAliasForm().isSimple()) {
@@ -307,7 +306,7 @@ internal object XMPNormalizer {
                         if (strictAliasing)
                             compareAliasedSubtrees(currProp, baseNode, true)
 
-                        propertyIt.remove()
+                        currSchema.removeChild(currProp)
 
                     } else {
 
@@ -330,14 +329,16 @@ internal object XMPNormalizer {
 
                         if (itemNode == null) {
 
-                            transplantArrayItemAlias(propertyIt, currProp, baseNode)
+                            transplantArrayItemAlias(currProp, baseNode) {
+                                currSchema.removeChild(currProp)
+                            }
 
                         } else {
 
                             if (strictAliasing)
                                 compareAliasedSubtrees(currProp, itemNode, true)
 
-                            propertyIt.remove()
+                            currSchema.removeChild(currProp)
                         }
                     }
                 }
@@ -350,15 +351,15 @@ internal object XMPNormalizer {
     /**
      * Moves an alias node of array form to another schema into an array
      *
-     * @param propertyIt the property iterator of the old schema (used to delete the property)
+     * @param removeChildFromTree lambda used to delete the property of the schema
      * @param childNode  the node to be moved
      * @param baseArray  the base array for the array item
      *
      */
     private fun transplantArrayItemAlias(
-        propertyIt: MutableIterator<XMPNode>,
         childNode: XMPNode,
-        baseArray: XMPNode
+        baseArray: XMPNode,
+        removeChildFromTree: () -> Unit
     ) {
 
         if (baseArray.options.isArrayAltText()) {
@@ -372,7 +373,7 @@ internal object XMPNormalizer {
             childNode.addQualifier(langQual)
         }
 
-        propertyIt.remove()
+        removeChildFromTree()
 
         childNode.name = XMPConst.ARRAY_ITEM_NAME
 
diff --git a/src/commonMain/kotlin/com/ashampoo/xmp/XMPRDFParser.kt b/src/commonMain/kotlin/com/ashampoo/xmp/XMPRDFParser.kt
index bd3758b..9bddb6c 100644
--- a/src/commonMain/kotlin/com/ashampoo/xmp/XMPRDFParser.kt
+++ b/src/commonMain/kotlin/com/ashampoo/xmp/XMPRDFParser.kt
@@ -653,9 +653,7 @@ internal object XMPRDFParser {
     /**
      * 7.2.21 emptyPropertyElt
      * start-element ( URI == propertyElementURIs,
-     * attributes == set (
-     * idAttr?, ( resourceAttr | nodeIdAttr )?, propertyAttr* ) )
-     * end-element()
+     * attributes == set (idAttr?, ( resourceAttr | nodeIdAttr )?, propertyAttr* ) ) end-element()
      *
      * <ns:Prop1></ns:Prop1>
      * <ns:Prop2 rdf:resource="http: *www.adobe.com/"></ns:Prop2>
@@ -701,7 +699,7 @@ internal object XMPRDFParser {
                 "Nested content not allowed with rdf:resource or property attributes", XMPError.BADRDF
             )
 
-        // First figure out what XMP this maps to and remember the XML node for a simple value.
+        /* First figure out what XMP this maps to and remember the XML node for a simple value. */
         for (index in 0 until xmlNode.attributes.length) {
 
             val attribute = xmlNode.attributes.item(index) as Attr
@@ -713,9 +711,15 @@ internal object XMPRDFParser {
 
             when (attrTerm) {
 
-                RDFTERM_ID -> {
-                    /* Do nothing. */
-                }
+                /*
+                 * Do nothing.
+                 */
+                RDFTERM_ID -> continue
+
+                /*
+                 * sample_52.xmp has an <rdf:li rdf:about=''/> we want to skip.
+                 */
+                RDFTERM_ABOUT -> continue
 
                 RDFTERM_RESOURCE -> {
 
@@ -769,8 +773,12 @@ internal object XMPRDFParser {
                     }
                 }
 
+                /* Fail on unknown elements. */
                 else ->
-                    throw XMPException("Unrecognized attribute of empty property element", XMPError.BADRDF)
+                    throw XMPException(
+                        "Unrecognized attribute of empty property element: $attrTerm",
+                        XMPError.BADRDF
+                    )
             }
         }
 
@@ -816,9 +824,13 @@ internal object XMPRDFParser {
 
             when (attrTerm) {
 
-                RDFTERM_ID, RDFTERM_NODE_ID -> {
-                    /* Do nothing. */
-                }
+                /* Do nothing with IDs. */
+                RDFTERM_ID, RDFTERM_NODE_ID -> continue
+
+                /*
+                 * sample_52.xmp has an <rdf:li rdf:about=''/> we want to skip.
+                 */
+                RDFTERM_ABOUT -> continue
 
                 RDFTERM_RESOURCE ->
                     addQualifierNode(childNode, "rdf:resource", attribute.value)
@@ -834,7 +846,7 @@ internal object XMPRDFParser {
                 }
 
                 else -> throw XMPException(
-                    "Unrecognized attribute of empty property element",
+                    "Unrecognized attribute of empty property element: $attrTerm",
                     XMPError.BADRDF
                 )
             }
diff --git a/src/commonMain/kotlin/com/ashampoo/xmp/XMPRDFWriter.kt b/src/commonMain/kotlin/com/ashampoo/xmp/XMPRDFWriter.kt
index 9f592fd..3088aa2 100644
--- a/src/commonMain/kotlin/com/ashampoo/xmp/XMPRDFWriter.kt
+++ b/src/commonMain/kotlin/com/ashampoo/xmp/XMPRDFWriter.kt
@@ -155,8 +155,6 @@ internal object XMPRDFWriter {
 
     /**
      * Serializes the metadata in pretty-printed manner.
-     *
-     * @param level indent level
      */
     private fun serializeCanonicalRDFSchemas(
         sb: StringBuilder,
@@ -198,8 +196,6 @@ internal object XMPRDFWriter {
 
     /**
      * Serializes the metadata in compact manner.
-     *
-     * @param level indent level to start with
      */
     private fun serializeCompactRDFSchemas(
         sb: StringBuilder,
@@ -291,9 +287,6 @@ internal object XMPRDFWriter {
      * field of a struct, or an item of an array. The indent is that for the
      * property element. The patterns bwlow ignore attribute qualifiers such as
      * xml:lang, they don't affect the output form.
-     *
-     * @param parentNode the parent node
-     * @param indent     the current indent level
      */
     private fun serializeCompactRDFElementProps(
         sb: StringBuilder,
@@ -383,7 +376,6 @@ internal object XMPRDFWriter {
     /**
      * Serializes a simple property.
      *
-     * @param node an XMPNode
      * @return Returns an array containing the flags emitEndTag and indentEndTag.
      */
     private fun serializeCompactRDFSimpleProp(
diff --git a/src/commonMain/kotlin/com/ashampoo/xmp/xpath/XMPPathParser.kt b/src/commonMain/kotlin/com/ashampoo/xmp/xpath/XMPPathParser.kt
index 63092ff..12a74fd 100644
--- a/src/commonMain/kotlin/com/ashampoo/xmp/xpath/XMPPathParser.kt
+++ b/src/commonMain/kotlin/com/ashampoo/xmp/xpath/XMPPathParser.kt
@@ -8,10 +8,10 @@
 // =================================================================================================
 package com.ashampoo.xmp.xpath
 
+import com.ashampoo.xmp.Utils
 import com.ashampoo.xmp.XMPError
 import com.ashampoo.xmp.XMPException
 import com.ashampoo.xmp.XMPMetaFactory.schemaRegistry
-import com.ashampoo.xmp.Utils
 
 /**
  * Parser for XMP XPaths.
diff --git a/src/commonTest/kotlin/com/ashampoo/xmp/RewriteXmpTest.kt b/src/commonTest/kotlin/com/ashampoo/xmp/RewriteXmpTest.kt
index bbd072e..eb9156e 100644
--- a/src/commonTest/kotlin/com/ashampoo/xmp/RewriteXmpTest.kt
+++ b/src/commonTest/kotlin/com/ashampoo/xmp/RewriteXmpTest.kt
@@ -5,7 +5,6 @@ import com.goncalossilva.resources.Resource
 import kotlinx.io.buffered
 import kotlinx.io.files.Path
 import kotlinx.io.files.SystemFileSystem
-import kotlinx.io.files.sink
 import kotlin.test.Test
 import kotlin.test.fail
 
@@ -42,35 +41,46 @@ class RewriteXmpTest {
         @Suppress("LoopWithTooManyJumpStatements")
         for (index in 1..TEST_PHOTO_COUNT) {
 
-            val originalXmp = getOriginalXmp(index)
+            try {
 
-            val xmpMeta = XMPMetaFactory.parseFromString(originalXmp)
+                val originalXmp = getOriginalXmp(index)
 
-            val actualCompactXmp = XMPMetaFactory.serializeToString(xmpMeta, xmpSerializeOptionsCompact)
-            val actualCanonicalXmp = XMPMetaFactory.serializeToString(xmpMeta, xmpSerializeOptionsCanonical)
+                val xmpMeta = XMPMetaFactory.parseFromString(originalXmp)
 
-            val expectedCompactXmp = getFormattedCompactXmp(index)
-            val expectedCanonicalXmp = getFormattedCanonicalXmp(index)
+                val actualCompactXmp = XMPMetaFactory.serializeToString(xmpMeta, xmpSerializeOptionsCompact)
+                val actualCanonicalXmp =
+                    XMPMetaFactory.serializeToString(xmpMeta, xmpSerializeOptionsCanonical)
 
-            val equals = expectedCompactXmp.contentEquals(actualCompactXmp) &&
-                expectedCanonicalXmp.contentEquals(actualCanonicalXmp)
+                val expectedCompactXmp = getFormattedCompactXmp(index)
+                val expectedCanonicalXmp = getFormattedCanonicalXmp(index)
 
-            if (!equals) {
+                val equals = expectedCompactXmp.contentEquals(actualCompactXmp) &&
+                    expectedCanonicalXmp.contentEquals(actualCanonicalXmp)
 
-                SystemFileSystem
-                    .sink(Path("build/sample_${index}_formatted_compact.xmp"))
-                    .buffered()
-                    .use {
-                        it.write(actualCompactXmp.encodeToByteArray())
-                    }
+                if (!equals) {
 
-                SystemFileSystem.sink(Path("build/sample_${index}_formatted_canonical.xmp"))
-                    .buffered()
-                    .use {
-                        it.write(actualCanonicalXmp.encodeToByteArray())
-                    }
+                    SystemFileSystem
+                        .sink(Path("build/sample_${index}_formatted_compact.xmp"))
+                        .buffered()
+                        .use {
+                            it.write(actualCompactXmp.encodeToByteArray())
+                        }
+
+                    SystemFileSystem.sink(Path("build/sample_${index}_formatted_canonical.xmp"))
+                        .buffered()
+                        .use {
+                            it.write(actualCanonicalXmp.encodeToByteArray())
+                        }
+
+                    fail("XMP for sample $index looks different after rewrite.")
+                }
+
+            } catch (ex: Exception) {
+
+                @Suppress("PrintStackTrace")
+                ex.printStackTrace()
 
-                fail("XMP for sample $index looks different after rewrite.")
+                fail("testRewriteXmp() failed for XMP sample $index due to ${ex.message}")
             }
         }
     }
diff --git a/src/commonTest/kotlin/com/ashampoo/xmp/UtilsTest.kt b/src/commonTest/kotlin/com/ashampoo/xmp/UtilsTest.kt
index 422c2a5..186b892 100644
--- a/src/commonTest/kotlin/com/ashampoo/xmp/UtilsTest.kt
+++ b/src/commonTest/kotlin/com/ashampoo/xmp/UtilsTest.kt
@@ -1,6 +1,5 @@
 package com.ashampoo.xmp
 
-import com.ashampoo.xmp.Utils
 import kotlin.test.Test
 import kotlin.test.assertEquals
 
diff --git a/src/commonTest/kotlin/com/ashampoo/xmp/WriteXmpTest.kt b/src/commonTest/kotlin/com/ashampoo/xmp/WriteXmpTest.kt
index e11439b..875e56a 100644
--- a/src/commonTest/kotlin/com/ashampoo/xmp/WriteXmpTest.kt
+++ b/src/commonTest/kotlin/com/ashampoo/xmp/WriteXmpTest.kt
@@ -1,14 +1,11 @@
 package com.ashampoo.xmp
 
-import com.ashampoo.xmp.XMPConst.DEFAULT_GPS_VERSION_ID
-import com.ashampoo.xmp.XMPConst.XMP_DC_SUBJECT
 import com.ashampoo.xmp.options.PropertyOptions
 import com.ashampoo.xmp.options.SerializeOptions
 import com.goncalossilva.resources.Resource
 import kotlinx.io.buffered
 import kotlinx.io.files.Path
 import kotlinx.io.files.SystemFileSystem
-import kotlinx.io.files.sink
 import kotlin.test.Test
 import kotlin.test.fail
 
diff --git a/src/commonTest/resources/com/ashampoo/xmp/README b/src/commonTest/resources/com/ashampoo/xmp/README
new file mode 100644
index 0000000..cf0a770
--- /dev/null
+++ b/src/commonTest/resources/com/ashampoo/xmp/README
@@ -0,0 +1,13 @@
+This document makes comments about special XMP samples in the set.
+We collect problematic files from real-world images to test for regression.
+
+# sample_50.xml
+Problem: Doubled child entries
+
+# sample_51.xml
+Problem: Doubled ImageDescription field
+
+# sample_52.xml
+okb9GBO6w0.jpg
+XMPException: Unrecognized attribute of empty property element
+<rdf:li rdf:about=''/>
diff --git a/src/commonTest/resources/com/ashampoo/xmp/sample_50.xmp b/src/commonTest/resources/com/ashampoo/xmp/sample_50.xmp
index bc19b36..f400ac5 100644
--- a/src/commonTest/resources/com/ashampoo/xmp/sample_50.xmp
+++ b/src/commonTest/resources/com/ashampoo/xmp/sample_50.xmp
@@ -1,4 +1,105 @@
 <?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
-<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/"><xmp:Rating>0</xmp:Rating></rdf:Description></rdf:RDF></x:xmpmeta>
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
-<?xpacket end='w'?>
\ No newline at end of file
+<x:xmpmeta xmlns:x='adobe:ns:meta/'>
+<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
+
+ <rdf:Description xmlns:xmp='http://ns.adobe.com/xap/1.0/'>
+  <xmp:Rating>0</xmp:Rating>
+  <xmp:Rating>0</xmp:Rating>
+  <xmp:ModifyDate>2013-05-24T14:08:48+03:00</xmp:ModifyDate>
+  <xmp:CreateDate>2000-01-01T00:08:04.39+02:00</xmp:CreateDate>
+  <xmp:MetadataDate>2013-05-24T14:08:48+03:00</xmp:MetadataDate>
+ </rdf:Description>
+
+ <rdf:Description xmlns:aux='http://ns.adobe.com/exif/1.0/aux/'>
+  <aux:SerialNumber>113063070880</aux:SerialNumber>
+  <aux:LensInfo>50/1 50/1 0/0 0/0</aux:LensInfo>
+  <aux:Lens>50-50mm</aux:Lens>
+  <aux:LensID>27</aux:LensID>
+  <aux:LensSerialNumber>0000000000</aux:LensSerialNumber>
+  <aux:ImageNumber>0</aux:ImageNumber>
+  <aux:FlashCompensation>0/1</aux:FlashCompensation>
+  <aux:Firmware>1.0.1</aux:Firmware>
+  <aux:SerialNumber>113063070880</aux:SerialNumber>
+  <aux:LensInfo>50/1 50/1 0/0 0/0</aux:LensInfo>
+  <aux:Lens>50-50mm</aux:Lens>
+  <aux:LensID>27</aux:LensID>
+  <aux:LensSerialNumber>0000000000</aux:LensSerialNumber>
+  <aux:ImageNumber>0</aux:ImageNumber>
+  <aux:FlashCompensation>0/1</aux:FlashCompensation>
+  <aux:Firmware>1.0.1</aux:Firmware>
+ </rdf:Description>
+
+ <rdf:Description xmlns:crs='http://ns.adobe.com/camera-raw-settings/1.0/'>
+  <crs:AlreadyApplied>True</crs:AlreadyApplied>
+  <crs:AlreadyApplied>True</crs:AlreadyApplied>
+ </rdf:Description>
+
+ <rdf:Description xmlns:photoshop='http://ns.adobe.com/photoshop/1.0/'>
+  <photoshop:ColorMode>3</photoshop:ColorMode>
+  <photoshop:ICCProfile>sRGB IEC61966-2.1</photoshop:ICCProfile>
+  <photoshop:ColorMode>3</photoshop:ColorMode>
+  <photoshop:ICCProfile>sRGB IEC61966-2.1</photoshop:ICCProfile>
+  <photoshop:DateCreated>2000-01-01T00:08:04.039</photoshop:DateCreated>
+ </rdf:Description>
+
+ <rdf:Description xmlns:dc='http://purl.org/dc/elements/1.1/'>
+  <dc:format>image/jpeg</dc:format>
+ </rdf:Description>
+
+ <rdf:Description xmlns:xmpMM='http://ns.adobe.com/xap/1.0/mm/'>
+  <xmpMM:InstanceID>xmp.iid:E2D0CB145FC4E211AD7DCE11772AE6CC</xmpMM:InstanceID>
+  <xmpMM:OriginalDocumentID>xmp.did:E2D0CB145FC4E211AD7DCE11772AE6CC</xmpMM:OriginalDocumentID>
+  <xmpMM:InstanceID>xmp.iid:E2D0CB145FC4E211AD7DCE11772AE6CC</xmpMM:InstanceID>
+  <xmpMM:DocumentID rdf:resource='xmp.did:E2D0CB145FC4E211AD7DCE11772AE6CC' />
+  <xmpMM:OriginalDocumentID>xmp.did:E2D0CB145FC4E211AD7DCE11772AE6CC</xmpMM:OriginalDocumentID>
+  <xmpMM:History>
+   <rdf:Seq>
+   </rdf:Seq>
+  </xmpMM:History>
+ </rdf:Description>
+
+ <rdf:Description xmlns:exif='http://ns.adobe.com/exif/1.0/'>
+  <exif:ImageWidth>5184</exif:ImageWidth>
+  <exif:ImageLength>3456</exif:ImageLength>
+  <exif:BitsPerSample>8, 8, 8</exif:BitsPerSample>
+  <exif:PhotometricInterpretation>RGB</exif:PhotometricInterpretation>
+  <exif:Make>Canon</exif:Make>
+  <exif:Model>Canon EOS 600D</exif:Model>
+  <exif:Orientation>Top-left</exif:Orientation>
+  <exif:SamplesPerPixel>3</exif:SamplesPerPixel>
+  <exif:XResolution>72,0000</exif:XResolution>
+  <exif:YResolution>72,0000</exif:YResolution>
+  <exif:ResolutionUnit>Inch</exif:ResolutionUnit>
+  <exif:Software>Adobe Photoshop CS5 Windows</exif:Software>
+  <exif:DateTime>2013:05:24 14:08:48</exif:DateTime>
+  <exif:YCbCrPositioning>Co-sited</exif:YCbCrPositioning>
+  <exif:Compression>JPEG compression</exif:Compression>
+  <exif:XResolution>72</exif:XResolution>
+  <exif:YResolution>72</exif:YResolution>
+  <exif:ResolutionUnit>Inch</exif:ResolutionUnit>
+  <exif:ExposureTime>1/1250 sec.</exif:ExposureTime>
+  <exif:FNumber>f/2,0</exif:FNumber>
+  <exif:ExposureProgram>Shutter priority</exif:ExposureProgram>
+  <exif:ISOSpeedRatings>
+   <rdf:Seq>
+    <rdf:li>100</rdf:li>
+   </rdf:Seq>
+  </exif:ISOSpeedRatings>
+  <exif:ExifVersion>Exif Version 2.3</exif:ExifVersion>
+  <exif:DateTimeOriginal>2000:01:01 00:08:04</exif:DateTimeOriginal>
+  <exif:DateTimeDigitized>2000:01:01 00:08:04</exif:DateTimeDigitized>
+  <exif:ComponentsConfiguration>
+   <rdf:Seq>
+    <rdf:li>Y Cb Cr -</rdf:li>
+   </rdf:Seq>
+  </exif:ComponentsConfiguration>
+  <exif:ShutterSpeedValue>10,38 EV (1/1327 sec.)</exif:ShutterSpeedValue>
+  <exif:ApertureValue>2,00 EV (f/2,0)</exif:ApertureValue>
+  <exif:ExposureBiasValue>0,00 EV</exif:ExposureBiasValue>
+  <exif:MaxApertureValue>2,00 EV (f/2,0)</exif:MaxApertureValue>
+  <exif:MeteringMode>Pattern</exif:MeteringMode>
+ </rdf:Description>
+
+</rdf:RDF>
+</x:xmpmeta>
+<?xpacket end='r'?>
diff --git a/src/commonTest/resources/com/ashampoo/xmp/sample_50_formatted_canonical.xmp b/src/commonTest/resources/com/ashampoo/xmp/sample_50_formatted_canonical.xmp
index 63bda32..9a5e702 100644
--- a/src/commonTest/resources/com/ashampoo/xmp/sample_50_formatted_canonical.xmp
+++ b/src/commonTest/resources/com/ashampoo/xmp/sample_50_formatted_canonical.xmp
@@ -2,8 +2,75 @@
 <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.1.3">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
     <rdf:Description rdf:about=""
-        xmlns:xmp="http://ns.adobe.com/xap/1.0/">
+        xmlns:aux="http://ns.adobe.com/exif/1.0/aux/"
+        xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/"
+        xmlns:dc="http://purl.org/dc/elements/1.1/"
+        xmlns:exif="http://ns.adobe.com/exif/1.0/"
+        xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
+        xmlns:xmp="http://ns.adobe.com/xap/1.0/"
+        xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">
+      <aux:Firmware>1.0.1</aux:Firmware>
+      <aux:FlashCompensation>0/1</aux:FlashCompensation>
+      <aux:ImageNumber>0</aux:ImageNumber>
+      <aux:Lens>50-50mm</aux:Lens>
+      <aux:LensID>27</aux:LensID>
+      <aux:LensInfo>50/1 50/1 0/0 0/0</aux:LensInfo>
+      <aux:LensSerialNumber>0000000000</aux:LensSerialNumber>
+      <aux:SerialNumber>113063070880</aux:SerialNumber>
+      <crs:AlreadyApplied>True</crs:AlreadyApplied>
+      <dc:format>image/jpeg</dc:format>
+      <exif:ApertureValue>2,00 EV (f/2,0)</exif:ApertureValue>
+      <exif:BitsPerSample>8, 8, 8</exif:BitsPerSample>
+      <exif:ComponentsConfiguration>
+        <rdf:Seq>
+          <rdf:li>Y Cb Cr -</rdf:li>
+        </rdf:Seq>
+      </exif:ComponentsConfiguration>
+      <exif:Compression>JPEG compression</exif:Compression>
+      <exif:DateTime>2013:05:24 14:08:48</exif:DateTime>
+      <exif:DateTimeOriginal>2000:01:01 00:08:04</exif:DateTimeOriginal>
+      <exif:ExifVersion>Exif Version 2.3</exif:ExifVersion>
+      <exif:ExposureBiasValue>0,00 EV</exif:ExposureBiasValue>
+      <exif:ExposureProgram>Shutter priority</exif:ExposureProgram>
+      <exif:ExposureTime>1/1250 sec.</exif:ExposureTime>
+      <exif:FNumber>f/2,0</exif:FNumber>
+      <exif:ISOSpeedRatings>
+        <rdf:Seq>
+          <rdf:li>100</rdf:li>
+        </rdf:Seq>
+      </exif:ISOSpeedRatings>
+      <exif:ImageLength>3456</exif:ImageLength>
+      <exif:ImageWidth>5184</exif:ImageWidth>
+      <exif:Make>Canon</exif:Make>
+      <exif:MaxApertureValue>2,00 EV (f/2,0)</exif:MaxApertureValue>
+      <exif:MeteringMode>Pattern</exif:MeteringMode>
+      <exif:Model>Canon EOS 600D</exif:Model>
+      <exif:Orientation>Top-left</exif:Orientation>
+      <exif:PhotometricInterpretation>RGB</exif:PhotometricInterpretation>
+      <exif:ResolutionUnit>Inch</exif:ResolutionUnit>
+      <exif:SamplesPerPixel>3</exif:SamplesPerPixel>
+      <exif:ShutterSpeedValue>10,38 EV (1/1327 sec.)</exif:ShutterSpeedValue>
+      <exif:Software>Adobe Photoshop CS5 Windows</exif:Software>
+      <exif:XResolution>72,0000</exif:XResolution>
+      <exif:YCbCrPositioning>Co-sited</exif:YCbCrPositioning>
+      <exif:YResolution>72,0000</exif:YResolution>
+      <photoshop:ColorMode>3</photoshop:ColorMode>
+      <photoshop:DateCreated>2000-01-01T00:08:04.039</photoshop:DateCreated>
+      <photoshop:ICCProfile>sRGB IEC61966-2.1</photoshop:ICCProfile>
+      <xmp:CreateDate>2000-01-01T00:08:04.39+02:00</xmp:CreateDate>
+      <xmp:MetadataDate>2013-05-24T14:08:48+03:00</xmp:MetadataDate>
+      <xmp:ModifyDate>2013-05-24T14:08:48+03:00</xmp:ModifyDate>
       <xmp:Rating>0</xmp:Rating>
+      <xmpMM:DocumentID>
+        <rdf:Description>
+          <rdf:resource>xmp.did:E2D0CB145FC4E211AD7DCE11772AE6CC</rdf:resource>
+        </rdf:Description>
+      </xmpMM:DocumentID>
+      <xmpMM:History>
+        <rdf:Seq/>
+      </xmpMM:History>
+      <xmpMM:InstanceID>xmp.iid:E2D0CB145FC4E211AD7DCE11772AE6CC</xmpMM:InstanceID>
+      <xmpMM:OriginalDocumentID>xmp.did:E2D0CB145FC4E211AD7DCE11772AE6CC</xmpMM:OriginalDocumentID>
     </rdf:Description>
   </rdf:RDF>
 </x:xmpmeta>
diff --git a/src/commonTest/resources/com/ashampoo/xmp/sample_50_formatted_compact.xmp b/src/commonTest/resources/com/ashampoo/xmp/sample_50_formatted_compact.xmp
index 7fec24e..e6b92b1 100644
--- a/src/commonTest/resources/com/ashampoo/xmp/sample_50_formatted_compact.xmp
+++ b/src/commonTest/resources/com/ashampoo/xmp/sample_50_formatted_compact.xmp
@@ -2,8 +2,73 @@
 <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.1.3">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
     <rdf:Description rdf:about=""
+        xmlns:aux="http://ns.adobe.com/exif/1.0/aux/"
+        xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/"
+        xmlns:dc="http://purl.org/dc/elements/1.1/"
+        xmlns:exif="http://ns.adobe.com/exif/1.0/"
+        xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
         xmlns:xmp="http://ns.adobe.com/xap/1.0/"
-      xmp:Rating="0"/>
+        xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
+      aux:Firmware="1.0.1"
+      aux:FlashCompensation="0/1"
+      aux:ImageNumber="0"
+      aux:Lens="50-50mm"
+      aux:LensID="27"
+      aux:LensInfo="50/1 50/1 0/0 0/0"
+      aux:LensSerialNumber="0000000000"
+      aux:SerialNumber="113063070880"
+      crs:AlreadyApplied="True"
+      dc:format="image/jpeg"
+      exif:ApertureValue="2,00 EV (f/2,0)"
+      exif:BitsPerSample="8, 8, 8"
+      exif:Compression="JPEG compression"
+      exif:DateTime="2013:05:24 14:08:48"
+      exif:DateTimeOriginal="2000:01:01 00:08:04"
+      exif:ExifVersion="Exif Version 2.3"
+      exif:ExposureBiasValue="0,00 EV"
+      exif:ExposureProgram="Shutter priority"
+      exif:ExposureTime="1/1250 sec."
+      exif:FNumber="f/2,0"
+      exif:ImageLength="3456"
+      exif:ImageWidth="5184"
+      exif:Make="Canon"
+      exif:MaxApertureValue="2,00 EV (f/2,0)"
+      exif:MeteringMode="Pattern"
+      exif:Model="Canon EOS 600D"
+      exif:Orientation="Top-left"
+      exif:PhotometricInterpretation="RGB"
+      exif:ResolutionUnit="Inch"
+      exif:SamplesPerPixel="3"
+      exif:ShutterSpeedValue="10,38 EV (1/1327 sec.)"
+      exif:Software="Adobe Photoshop CS5 Windows"
+      exif:XResolution="72,0000"
+      exif:YCbCrPositioning="Co-sited"
+      exif:YResolution="72,0000"
+      photoshop:ColorMode="3"
+      photoshop:DateCreated="2000-01-01T00:08:04.039"
+      photoshop:ICCProfile="sRGB IEC61966-2.1"
+      xmp:CreateDate="2000-01-01T00:08:04.39+02:00"
+      xmp:MetadataDate="2013-05-24T14:08:48+03:00"
+      xmp:ModifyDate="2013-05-24T14:08:48+03:00"
+      xmp:Rating="0"
+      xmpMM:InstanceID="xmp.iid:E2D0CB145FC4E211AD7DCE11772AE6CC"
+      xmpMM:OriginalDocumentID="xmp.did:E2D0CB145FC4E211AD7DCE11772AE6CC">
+      <exif:ComponentsConfiguration>
+        <rdf:Seq>
+          <rdf:li>Y Cb Cr -</rdf:li>
+        </rdf:Seq>
+      </exif:ComponentsConfiguration>
+      <exif:ISOSpeedRatings>
+        <rdf:Seq>
+          <rdf:li>100</rdf:li>
+        </rdf:Seq>
+      </exif:ISOSpeedRatings>
+      <xmpMM:DocumentID
+        rdf:resource="xmp.did:E2D0CB145FC4E211AD7DCE11772AE6CC"/>
+      <xmpMM:History>
+        <rdf:Seq/>
+      </xmpMM:History>
+    </rdf:Description>
   </rdf:RDF>
 </x:xmpmeta>
 <?xpacket end="w"?>
\ No newline at end of file
diff --git a/src/commonTest/resources/com/ashampoo/xmp/sample_51.xmp b/src/commonTest/resources/com/ashampoo/xmp/sample_51.xmp
index bd656cf..876f94e 100644
--- a/src/commonTest/resources/com/ashampoo/xmp/sample_51.xmp
+++ b/src/commonTest/resources/com/ashampoo/xmp/sample_51.xmp
@@ -1,239 +1,76 @@
-<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
-<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2">
- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
-  <rdf:Description rdf:about=""
-    xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
-    xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#"
-    xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#"
-    xmlns:aux="http://ns.adobe.com/exif/1.0/aux/"
-    xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/"
-    xmlns:dc="http://purl.org/dc/elements/1.1/"
-    xmlns:exifEX="http://cipa.jp/exif/1.0/"
-    xmlns:GIMP="http://www.gimp.org/xmp/"
-    xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
-    xmlns:tiff="http://ns.adobe.com/tiff/1.0/"
-    xmlns:xmp="http://ns.adobe.com/xap/1.0/"
-   xmpMM:DocumentID="xmp.did:69493116-46dc-402d-931b-1c9bf37ddaad"
-   xmpMM:InstanceID="xmp.iid:b6251a9e-0b38-4a48-b01e-cf5a7d9a4bb9"
-   xmpMM:OriginalDocumentID="D91E7F7E064AEF7A630A1DCAC6BF38D0"
-   aux:ApproximateFocusDistance="161/100"
-   aux:Firmware="1.4.0"
-   aux:FlashCompensation="0/1"
-   aux:ImageNumber="0"
-   aux:Lens="EF70-300mm f/4-5.6L IS USM"
-   aux:LensID="489"
-   aux:LensInfo="70/1 300/1 0/0 0/0"
-   aux:LensSerialNumber="7820004130"
-   aux:SerialNumber="058021001133"
-   crs:AlreadyApplied="True"
-   crs:AutoLateralCA="0"
-   crs:AutoToneDigest="DB958B423B648352F5500DCF12E528B1"
-   crs:AutoToneDigestNoSat="5D637BD0F4976718D5C101714DE7835E"
-   crs:Blacks2012="-27"
-   crs:BlueHue="0"
-   crs:BlueSaturation="0"
-   crs:CameraProfile="Adobe Standard"
-   crs:CameraProfileDigest="38E531B7F49849F74EF6FA15106BD31D"
-   crs:Clarity2012="-15"
-   crs:ColorNoiseReduction="25"
-   crs:ColorNoiseReductionDetail="23"
-   crs:ColorNoiseReductionSmoothness="23"
-   crs:Contrast2012="+56"
-   crs:ConvertToGrayscale="False"
-   crs:DefringeGreenAmount="0"
-   crs:DefringeGreenHueHi="60"
-   crs:DefringeGreenHueLo="40"
-   crs:DefringePurpleAmount="0"
-   crs:DefringePurpleHueHi="70"
-   crs:DefringePurpleHueLo="30"
-   crs:Dehaze="+11"
-   crs:Exposure2012="+0.20"
-   crs:GrainAmount="0"
-   crs:GreenHue="0"
-   crs:GreenSaturation="0"
-   crs:HasCrop="False"
-   crs:HasSettings="True"
-   crs:Highlights2012="-33"
-   crs:HueAdjustmentAqua="0"
-   crs:HueAdjustmentBlue="0"
-   crs:HueAdjustmentGreen="0"
-   crs:HueAdjustmentMagenta="0"
-   crs:HueAdjustmentOrange="0"
-   crs:HueAdjustmentPurple="0"
-   crs:HueAdjustmentRed="0"
-   crs:HueAdjustmentYellow="0"
-   crs:LensManualDistortionAmount="0"
-   crs:LensProfileEnable="0"
-   crs:LensProfileSetup="LensDefaults"
-   crs:LuminanceAdjustmentAqua="0"
-   crs:LuminanceAdjustmentBlue="0"
-   crs:LuminanceAdjustmentGreen="0"
-   crs:LuminanceAdjustmentMagenta="0"
-   crs:LuminanceAdjustmentOrange="0"
-   crs:LuminanceAdjustmentPurple="0"
-   crs:LuminanceAdjustmentRed="0"
-   crs:LuminanceAdjustmentYellow="0"
-   crs:LuminanceNoiseReductionContrast="21"
-   crs:LuminanceNoiseReductionDetail="20"
-   crs:LuminanceSmoothing="20"
-   crs:OverrideLookVignette="False"
-   crs:ParametricDarks="0"
-   crs:ParametricHighlights="0"
-   crs:ParametricHighlightSplit="75"
-   crs:ParametricLights="0"
-   crs:ParametricMidtoneSplit="50"
-   crs:ParametricShadows="0"
-   crs:ParametricShadowSplit="25"
-   crs:PerspectiveAspect="0"
-   crs:PerspectiveHorizontal="0"
-   crs:PerspectiveRotate="0.0"
-   crs:PerspectiveScale="100"
-   crs:PerspectiveUpright="0"
-   crs:PerspectiveVertical="0"
-   crs:PerspectiveX="0.00"
-   crs:PerspectiveY="0.00"
-   crs:PostCropVignetteAmount="0"
-   crs:ProcessVersion="11.0"
-   crs:RawFileName="353A9054.CR3"
-   crs:RedHue="0"
-   crs:RedSaturation="0"
-   crs:Saturation="-1"
-   crs:SaturationAdjustmentAqua="0"
-   crs:SaturationAdjustmentBlue="0"
-   crs:SaturationAdjustmentGreen="0"
-   crs:SaturationAdjustmentMagenta="0"
-   crs:SaturationAdjustmentOrange="0"
-   crs:SaturationAdjustmentPurple="0"
-   crs:SaturationAdjustmentRed="0"
-   crs:SaturationAdjustmentYellow="0"
-   crs:Shadows2012="+42"
-   crs:ShadowTint="0"
-   crs:SharpenDetail="25"
-   crs:SharpenEdgeMasking="0"
-   crs:SharpenRadius="+1.0"
-   crs:Sharpness="40"
-   crs:SplitToningBalance="0"
-   crs:SplitToningHighlightHue="0"
-   crs:SplitToningHighlightSaturation="0"
-   crs:SplitToningShadowHue="0"
-   crs:SplitToningShadowSaturation="0"
-   crs:Temperature="4850"
-   crs:Texture="-9"
-   crs:Tint="-7"
-   crs:ToneCurve="0, 0, 32, 22, 64, 56, 128, 128, 192, 196, 255, 255"
-   crs:ToneCurveBlue="0, 0, 255, 255"
-   crs:ToneCurveGreen="0, 0, 255, 255"
-   crs:ToneCurveName="Medium Contrast"
-   crs:ToneCurveName2012="Linear"
-   crs:ToneCurvePV2012="0, 0, 255, 255"
-   crs:ToneCurvePV2012Blue="0, 0, 255, 255"
-   crs:ToneCurvePV2012Green="0, 0, 255, 255"
-   crs:ToneCurvePV2012Red="0, 0, 255, 255"
-   crs:ToneCurveRed="0, 0, 255, 255"
-   crs:ToneMapStrength="0"
-   crs:UprightCenterMode="0"
-   crs:UprightCenterNormX="0.5"
-   crs:UprightCenterNormY="0.5"
-   crs:UprightFocalLength35mm="35"
-   crs:UprightFocalMode="0"
-   crs:UprightFourSegmentsCount="0"
-   crs:UprightPreview="False"
-   crs:UprightTransformCount="6"
-   crs:UprightVersion="151388160"
-   crs:Version="12.2"
-   crs:Vibrance="+14"
-   crs:VignetteAmount="0"
-   crs:WhiteBalance="Custom"
-   crs:Whites2012="+36"
-   dc:format="image/jpeg"
-   exifEX:LensModel="EF70-300mm f/4-5.6L IS USM"
-   GIMP:API="2.0"
-   GIMP:Platform="Mac OS"
-   GIMP:TimeStamp="1664194672787493"
-   GIMP:Version="2.10.30"
-   photoshop:DateCreated="2020-03-11T17:37:33.36+08:00"
-   tiff:Orientation="1"
-   xmp:CreateDate="2020-03-11T17:37:33.36+08:00"
-   xmp:CreatorTool="GIMP 2.10"
-   xmp:MetadataDate="2020-03-11T20:10:12+07:00"
-   xmp:ModifyDate="2020-03-11T20:10:12+07:00"
-   xmp:Rating="2">
-   <xmpMM:History>
-    <rdf:Seq>
-     <rdf:li
-      stEvt:action="derived"
-      stEvt:parameters="converted from image/x-canon-cr3 to image/jpeg, saved to new location"/>
-     <rdf:li
-      stEvt:action="saved"
-      stEvt:changed="/"
-      stEvt:instanceID="xmp.iid:69493116-46dc-402d-931b-1c9bf37ddaad"
-      stEvt:softwareAgent="Adobe Photoshop Camera Raw 12.2 (Macintosh)"
-      stEvt:when="2020-03-11T20:10:12+07:00"/>
-     <rdf:li
-      stEvt:action="saved"
-      stEvt:changed="/"
-      stEvt:instanceID="xmp.iid:9d7b157e-f1a6-4fbe-8b35-d7cf3cf75dd3"
-      stEvt:softwareAgent="Gimp 2.10 (Mac OS)"
-      stEvt:when="2022-09-26T14:17:52+02:00"/>
-    </rdf:Seq>
-   </xmpMM:History>
-   <xmpMM:DerivedFrom
-    stRef:documentID="D91E7F7E064AEF7A630A1DCAC6BF38D0"
-    stRef:originalDocumentID="D91E7F7E064AEF7A630A1DCAC6BF38D0"/>
-   <crs:Look>
-    <rdf:Description
-     crs:Amount="1.000000"
-     crs:Copyright="© 2018 Adobe Systems, Inc."
-     crs:Group="lang=&quot;x-default&quot; Profiles"
-     crs:Name="Adobe Color"
-     crs:SupportsAmount="false"
-     crs:SupportsMonochrome="false"
-     crs:SupportsOutputReferred="false"
-     crs:UUID="B952C231111CD8E0ECCF14B86BAA7077">
-    <crs:Parameters
-     crs:CameraProfile="Adobe Standard"
-     crs:ConvertToGrayscale="False"
-     crs:LookTable="E1095149FDB39D7A057BAB208837E2E1"
-     crs:ProcessVersion="11.0"
-     crs:ToneCurvePV2012="0, 0, 22, 16, 40, 35, 127, 127, 224, 230, 240, 246, 255, 255"
-     crs:ToneCurvePV2012Blue="0, 0, 255, 255"
-     crs:ToneCurvePV2012Green="0, 0, 255, 255"
-     crs:ToneCurvePV2012Red="0, 0, 255, 255"
-     crs:Version="12.2"/>
-    </rdf:Description>
-   </crs:Look>
-   <dc:creator>
-    <rdf:Seq>
-     <rdf:li>SippakorN</rdf:li>
-    </rdf:Seq>
-   </dc:creator>
-   <dc:rights>
-    <rdf:Alt>
-     <rdf:li xml:lang="x-default">@Sippakorn1955</rdf:li>
-    </rdf:Alt>
-   </dc:rights>
-  </rdf:Description>
- </rdf:RDF>
+<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
+<x:xmpmeta xmlns:x='adobe:ns:meta/'>
+<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
+
+ <rdf:Description xmlns:exif='http://ns.adobe.com/exif/1.0/'>
+  <exif:ImageDescription>                               </exif:ImageDescription>
+  <exif:Make>SONY</exif:Make>
+  <exif:Model>SLT-A37</exif:Model>
+  <exif:Orientation>Top-left</exif:Orientation>
+  <exif:XResolution>350</exif:XResolution>
+  <exif:YResolution>350</exif:YResolution>
+  <exif:ResolutionUnit>Inch</exif:ResolutionUnit>
+  <exif:Software>SLT-A37 v1.02</exif:Software>
+  <exif:DateTime>2014:04:05 12:39:31</exif:DateTime>
+  <exif:YCbCrPositioning>Co-sited</exif:YCbCrPositioning>
+  <exif:PrintImageMatching>106 bytes undefined data</exif:PrintImageMatching>
+  <exif:Compression>JPEG compression</exif:Compression>
+  <exif:ImageDescription>                               </exif:ImageDescription>
+  <exif:Make>SONY</exif:Make>
+  <exif:Model>SLT-A37</exif:Model>
+  <exif:Orientation>Top-left</exif:Orientation>
+  <exif:XResolution>72</exif:XResolution>
+  <exif:YResolution>72</exif:YResolution>
+  <exif:ResolutionUnit>Inch</exif:ResolutionUnit>
+  <exif:Software>SLT-A37 v1.02</exif:Software>
+  <exif:DateTime>2014:04:05 12:39:31</exif:DateTime>
+  <exif:YCbCrPositioning>Co-sited</exif:YCbCrPositioning>
+  <exif:ExposureTime>1/160 sec.</exif:ExposureTime>
+  <exif:FNumber>f/5,6</exif:FNumber>
+  <exif:ExposureProgram>Normal program</exif:ExposureProgram>
+  <exif:ISOSpeedRatings>
+   <rdf:Seq>
+    <rdf:li>320</rdf:li>
+   </rdf:Seq>
+  </exif:ISOSpeedRatings>
+  <exif:ExifVersion>Unknown Exif Version</exif:ExifVersion>
+  <exif:DateTimeOriginal>2014:04:05 12:39:31</exif:DateTimeOriginal>
+  <exif:DateTimeDigitized>2014:04:05 12:39:31</exif:DateTimeDigitized>
+  <exif:ComponentsConfiguration>
+   <rdf:Seq>
+    <rdf:li>Y Cb Cr -</rdf:li>
+   </rdf:Seq>
+  </exif:ComponentsConfiguration>
+  <exif:CompressedBitsPerPixel> 1</exif:CompressedBitsPerPixel>
+  <exif:BrightnessValue>5,48 EV (152,72 cd/m^2)</exif:BrightnessValue>
+  <exif:ExposureBiasValue>0,00 EV</exif:ExposureBiasValue>
+  <exif:MaxApertureValue>4,97 EV (f/5,6)</exif:MaxApertureValue>
+  <exif:MeteringMode>Pattern</exif:MeteringMode>
+  <exif:LightSource>Unknown</exif:LightSource>
+  <exif:Flash rdf:parseType='Resource'>
+  </exif:Flash>
+  <exif:FocalLength>55,0 mm</exif:FocalLength>
+  <exif:MakerNote>35692 bytes undefined data</exif:MakerNote>
+  <exif:UserComment />
+  <exif:FlashPixVersion>FlashPix Version 1.0</exif:FlashPixVersion>
+  <exif:ColorSpace>sRGB</exif:ColorSpace>
+  <exif:PixelXDimension>4912</exif:PixelXDimension>
+  <exif:PixelYDimension>3264</exif:PixelYDimension>
+  <exif:FileSource>DSC</exif:FileSource>
+  <exif:SceneType>Directly photographed</exif:SceneType>
+  <exif:CustomRendered>Normal process</exif:CustomRendered>
+  <exif:ExposureMode>Auto exposure</exif:ExposureMode>
+  <exif:WhiteBalance>Auto white balance</exif:WhiteBalance>
+  <exif:DigitalZoomRatio>1,00</exif:DigitalZoomRatio>
+  <exif:FocalLengthIn35mmFilm>82</exif:FocalLengthIn35mmFilm>
+  <exif:SceneCaptureType>Standard</exif:SceneCaptureType>
+  <exif:Contrast>Normal</exif:Contrast>
+  <exif:Saturation>Normal</exif:Saturation>
+  <exif:Sharpness>Normal</exif:Sharpness>
+  <exif:InteroperabilityIndex>R98</exif:InteroperabilityIndex>
+  <exif:InteroperabilityVersion>0100</exif:InteroperabilityVersion>
+ </rdf:Description>
+
+</rdf:RDF>
 </x:xmpmeta>
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                                                                                                    
-                           
-<?xpacket end="w"?>
\ No newline at end of file
+<?xpacket end='r'?>
diff --git a/src/commonTest/resources/com/ashampoo/xmp/sample_51_formatted_canonical.xmp b/src/commonTest/resources/com/ashampoo/xmp/sample_51_formatted_canonical.xmp
index c5ab663..6e46718 100644
--- a/src/commonTest/resources/com/ashampoo/xmp/sample_51_formatted_canonical.xmp
+++ b/src/commonTest/resources/com/ashampoo/xmp/sample_51_formatted_canonical.xmp
@@ -2,231 +2,65 @@
 <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.1.3">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
     <rdf:Description rdf:about=""
-        xmlns:GIMP="http://www.gimp.org/xmp/"
-        xmlns:aux="http://ns.adobe.com/exif/1.0/aux/"
-        xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/"
-        xmlns:dc="http://purl.org/dc/elements/1.1/"
-        xmlns:exifEX="http://cipa.jp/exif/1.0/"
-        xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
-        xmlns:tiff="http://ns.adobe.com/tiff/1.0/"
-        xmlns:xmp="http://ns.adobe.com/xap/1.0/"
-        xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
-        xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#"
-        xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#">
-      <GIMP:API>2.0</GIMP:API>
-      <GIMP:Platform>Mac OS</GIMP:Platform>
-      <GIMP:TimeStamp>1664194672787493</GIMP:TimeStamp>
-      <GIMP:Version>2.10.30</GIMP:Version>
-      <aux:ApproximateFocusDistance>161/100</aux:ApproximateFocusDistance>
-      <aux:Firmware>1.4.0</aux:Firmware>
-      <aux:FlashCompensation>0/1</aux:FlashCompensation>
-      <aux:ImageNumber>0</aux:ImageNumber>
-      <aux:Lens>EF70-300mm f/4-5.6L IS USM</aux:Lens>
-      <aux:LensID>489</aux:LensID>
-      <aux:LensInfo>70/1 300/1 0/0 0/0</aux:LensInfo>
-      <aux:LensSerialNumber>7820004130</aux:LensSerialNumber>
-      <aux:SerialNumber>058021001133</aux:SerialNumber>
-      <crs:AlreadyApplied>True</crs:AlreadyApplied>
-      <crs:AutoLateralCA>0</crs:AutoLateralCA>
-      <crs:AutoToneDigest>DB958B423B648352F5500DCF12E528B1</crs:AutoToneDigest>
-      <crs:AutoToneDigestNoSat>5D637BD0F4976718D5C101714DE7835E</crs:AutoToneDigestNoSat>
-      <crs:Blacks2012>-27</crs:Blacks2012>
-      <crs:BlueHue>0</crs:BlueHue>
-      <crs:BlueSaturation>0</crs:BlueSaturation>
-      <crs:CameraProfile>Adobe Standard</crs:CameraProfile>
-      <crs:CameraProfileDigest>38E531B7F49849F74EF6FA15106BD31D</crs:CameraProfileDigest>
-      <crs:Clarity2012>-15</crs:Clarity2012>
-      <crs:ColorNoiseReduction>25</crs:ColorNoiseReduction>
-      <crs:ColorNoiseReductionDetail>23</crs:ColorNoiseReductionDetail>
-      <crs:ColorNoiseReductionSmoothness>23</crs:ColorNoiseReductionSmoothness>
-      <crs:Contrast2012>+56</crs:Contrast2012>
-      <crs:ConvertToGrayscale>False</crs:ConvertToGrayscale>
-      <crs:DefringeGreenAmount>0</crs:DefringeGreenAmount>
-      <crs:DefringeGreenHueHi>60</crs:DefringeGreenHueHi>
-      <crs:DefringeGreenHueLo>40</crs:DefringeGreenHueLo>
-      <crs:DefringePurpleAmount>0</crs:DefringePurpleAmount>
-      <crs:DefringePurpleHueHi>70</crs:DefringePurpleHueHi>
-      <crs:DefringePurpleHueLo>30</crs:DefringePurpleHueLo>
-      <crs:Dehaze>+11</crs:Dehaze>
-      <crs:Exposure2012>+0.20</crs:Exposure2012>
-      <crs:GrainAmount>0</crs:GrainAmount>
-      <crs:GreenHue>0</crs:GreenHue>
-      <crs:GreenSaturation>0</crs:GreenSaturation>
-      <crs:HasCrop>False</crs:HasCrop>
-      <crs:HasSettings>True</crs:HasSettings>
-      <crs:Highlights2012>-33</crs:Highlights2012>
-      <crs:HueAdjustmentAqua>0</crs:HueAdjustmentAqua>
-      <crs:HueAdjustmentBlue>0</crs:HueAdjustmentBlue>
-      <crs:HueAdjustmentGreen>0</crs:HueAdjustmentGreen>
-      <crs:HueAdjustmentMagenta>0</crs:HueAdjustmentMagenta>
-      <crs:HueAdjustmentOrange>0</crs:HueAdjustmentOrange>
-      <crs:HueAdjustmentPurple>0</crs:HueAdjustmentPurple>
-      <crs:HueAdjustmentRed>0</crs:HueAdjustmentRed>
-      <crs:HueAdjustmentYellow>0</crs:HueAdjustmentYellow>
-      <crs:LensManualDistortionAmount>0</crs:LensManualDistortionAmount>
-      <crs:LensProfileEnable>0</crs:LensProfileEnable>
-      <crs:LensProfileSetup>LensDefaults</crs:LensProfileSetup>
-      <crs:Look>
-        <rdf:Description>
-          <crs:Amount>1.000000</crs:Amount>
-          <crs:Copyright>© 2018 Adobe Systems, Inc.</crs:Copyright>
-          <crs:Group>lang="x-default" Profiles</crs:Group>
-          <crs:Name>Adobe Color</crs:Name>
-          <crs:Parameters>
-            <rdf:Description>
-              <crs:CameraProfile>Adobe Standard</crs:CameraProfile>
-              <crs:ConvertToGrayscale>False</crs:ConvertToGrayscale>
-              <crs:LookTable>E1095149FDB39D7A057BAB208837E2E1</crs:LookTable>
-              <crs:ProcessVersion>11.0</crs:ProcessVersion>
-              <crs:ToneCurvePV2012>0, 0, 22, 16, 40, 35, 127, 127, 224, 230, 240, 246, 255, 255</crs:ToneCurvePV2012>
-              <crs:ToneCurvePV2012Blue>0, 0, 255, 255</crs:ToneCurvePV2012Blue>
-              <crs:ToneCurvePV2012Green>0, 0, 255, 255</crs:ToneCurvePV2012Green>
-              <crs:ToneCurvePV2012Red>0, 0, 255, 255</crs:ToneCurvePV2012Red>
-              <crs:Version>12.2</crs:Version>
-            </rdf:Description>
-          </crs:Parameters>
-          <crs:SupportsAmount>false</crs:SupportsAmount>
-          <crs:SupportsMonochrome>false</crs:SupportsMonochrome>
-          <crs:SupportsOutputReferred>false</crs:SupportsOutputReferred>
-          <crs:UUID>B952C231111CD8E0ECCF14B86BAA7077</crs:UUID>
-        </rdf:Description>
-      </crs:Look>
-      <crs:LuminanceAdjustmentAqua>0</crs:LuminanceAdjustmentAqua>
-      <crs:LuminanceAdjustmentBlue>0</crs:LuminanceAdjustmentBlue>
-      <crs:LuminanceAdjustmentGreen>0</crs:LuminanceAdjustmentGreen>
-      <crs:LuminanceAdjustmentMagenta>0</crs:LuminanceAdjustmentMagenta>
-      <crs:LuminanceAdjustmentOrange>0</crs:LuminanceAdjustmentOrange>
-      <crs:LuminanceAdjustmentPurple>0</crs:LuminanceAdjustmentPurple>
-      <crs:LuminanceAdjustmentRed>0</crs:LuminanceAdjustmentRed>
-      <crs:LuminanceAdjustmentYellow>0</crs:LuminanceAdjustmentYellow>
-      <crs:LuminanceNoiseReductionContrast>21</crs:LuminanceNoiseReductionContrast>
-      <crs:LuminanceNoiseReductionDetail>20</crs:LuminanceNoiseReductionDetail>
-      <crs:LuminanceSmoothing>20</crs:LuminanceSmoothing>
-      <crs:OverrideLookVignette>False</crs:OverrideLookVignette>
-      <crs:ParametricDarks>0</crs:ParametricDarks>
-      <crs:ParametricHighlightSplit>75</crs:ParametricHighlightSplit>
-      <crs:ParametricHighlights>0</crs:ParametricHighlights>
-      <crs:ParametricLights>0</crs:ParametricLights>
-      <crs:ParametricMidtoneSplit>50</crs:ParametricMidtoneSplit>
-      <crs:ParametricShadowSplit>25</crs:ParametricShadowSplit>
-      <crs:ParametricShadows>0</crs:ParametricShadows>
-      <crs:PerspectiveAspect>0</crs:PerspectiveAspect>
-      <crs:PerspectiveHorizontal>0</crs:PerspectiveHorizontal>
-      <crs:PerspectiveRotate>0.0</crs:PerspectiveRotate>
-      <crs:PerspectiveScale>100</crs:PerspectiveScale>
-      <crs:PerspectiveUpright>0</crs:PerspectiveUpright>
-      <crs:PerspectiveVertical>0</crs:PerspectiveVertical>
-      <crs:PerspectiveX>0.00</crs:PerspectiveX>
-      <crs:PerspectiveY>0.00</crs:PerspectiveY>
-      <crs:PostCropVignetteAmount>0</crs:PostCropVignetteAmount>
-      <crs:ProcessVersion>11.0</crs:ProcessVersion>
-      <crs:RawFileName>353A9054.CR3</crs:RawFileName>
-      <crs:RedHue>0</crs:RedHue>
-      <crs:RedSaturation>0</crs:RedSaturation>
-      <crs:Saturation>-1</crs:Saturation>
-      <crs:SaturationAdjustmentAqua>0</crs:SaturationAdjustmentAqua>
-      <crs:SaturationAdjustmentBlue>0</crs:SaturationAdjustmentBlue>
-      <crs:SaturationAdjustmentGreen>0</crs:SaturationAdjustmentGreen>
-      <crs:SaturationAdjustmentMagenta>0</crs:SaturationAdjustmentMagenta>
-      <crs:SaturationAdjustmentOrange>0</crs:SaturationAdjustmentOrange>
-      <crs:SaturationAdjustmentPurple>0</crs:SaturationAdjustmentPurple>
-      <crs:SaturationAdjustmentRed>0</crs:SaturationAdjustmentRed>
-      <crs:SaturationAdjustmentYellow>0</crs:SaturationAdjustmentYellow>
-      <crs:ShadowTint>0</crs:ShadowTint>
-      <crs:Shadows2012>+42</crs:Shadows2012>
-      <crs:SharpenDetail>25</crs:SharpenDetail>
-      <crs:SharpenEdgeMasking>0</crs:SharpenEdgeMasking>
-      <crs:SharpenRadius>+1.0</crs:SharpenRadius>
-      <crs:Sharpness>40</crs:Sharpness>
-      <crs:SplitToningBalance>0</crs:SplitToningBalance>
-      <crs:SplitToningHighlightHue>0</crs:SplitToningHighlightHue>
-      <crs:SplitToningHighlightSaturation>0</crs:SplitToningHighlightSaturation>
-      <crs:SplitToningShadowHue>0</crs:SplitToningShadowHue>
-      <crs:SplitToningShadowSaturation>0</crs:SplitToningShadowSaturation>
-      <crs:Temperature>4850</crs:Temperature>
-      <crs:Texture>-9</crs:Texture>
-      <crs:Tint>-7</crs:Tint>
-      <crs:ToneCurve>0, 0, 32, 22, 64, 56, 128, 128, 192, 196, 255, 255</crs:ToneCurve>
-      <crs:ToneCurveBlue>0, 0, 255, 255</crs:ToneCurveBlue>
-      <crs:ToneCurveGreen>0, 0, 255, 255</crs:ToneCurveGreen>
-      <crs:ToneCurveName>Medium Contrast</crs:ToneCurveName>
-      <crs:ToneCurveName2012>Linear</crs:ToneCurveName2012>
-      <crs:ToneCurvePV2012>0, 0, 255, 255</crs:ToneCurvePV2012>
-      <crs:ToneCurvePV2012Blue>0, 0, 255, 255</crs:ToneCurvePV2012Blue>
-      <crs:ToneCurvePV2012Green>0, 0, 255, 255</crs:ToneCurvePV2012Green>
-      <crs:ToneCurvePV2012Red>0, 0, 255, 255</crs:ToneCurvePV2012Red>
-      <crs:ToneCurveRed>0, 0, 255, 255</crs:ToneCurveRed>
-      <crs:ToneMapStrength>0</crs:ToneMapStrength>
-      <crs:UprightCenterMode>0</crs:UprightCenterMode>
-      <crs:UprightCenterNormX>0.5</crs:UprightCenterNormX>
-      <crs:UprightCenterNormY>0.5</crs:UprightCenterNormY>
-      <crs:UprightFocalLength35mm>35</crs:UprightFocalLength35mm>
-      <crs:UprightFocalMode>0</crs:UprightFocalMode>
-      <crs:UprightFourSegmentsCount>0</crs:UprightFourSegmentsCount>
-      <crs:UprightPreview>False</crs:UprightPreview>
-      <crs:UprightTransformCount>6</crs:UprightTransformCount>
-      <crs:UprightVersion>151388160</crs:UprightVersion>
-      <crs:Version>12.2</crs:Version>
-      <crs:Vibrance>+14</crs:Vibrance>
-      <crs:VignetteAmount>0</crs:VignetteAmount>
-      <crs:WhiteBalance>Custom</crs:WhiteBalance>
-      <crs:Whites2012>+36</crs:Whites2012>
-      <dc:creator>
+        xmlns:exif="http://ns.adobe.com/exif/1.0/"
+        xmlns:xmp="http://ns.adobe.com/xap/1.0/">
+      <exif:BrightnessValue>5,48 EV (152,72 cd/m^2)</exif:BrightnessValue>
+      <exif:ColorSpace>sRGB</exif:ColorSpace>
+      <exif:ComponentsConfiguration>
         <rdf:Seq>
-          <rdf:li>SippakorN</rdf:li>
+          <rdf:li>Y Cb Cr -</rdf:li>
         </rdf:Seq>
-      </dc:creator>
-      <dc:format>image/jpeg</dc:format>
-      <dc:rights>
-        <rdf:Alt>
-          <rdf:li xml:lang="x-default">@Sippakorn1955</rdf:li>
-        </rdf:Alt>
-      </dc:rights>
-      <exifEX:LensModel>EF70-300mm f/4-5.6L IS USM</exifEX:LensModel>
-      <photoshop:DateCreated>2020-03-11T17:37:33.36+08:00</photoshop:DateCreated>
-      <tiff:Orientation>1</tiff:Orientation>
-      <xmp:CreateDate>2020-03-11T17:37:33.36+08:00</xmp:CreateDate>
-      <xmp:CreatorTool>GIMP 2.10</xmp:CreatorTool>
-      <xmp:MetadataDate>2020-03-11T20:10:12+07:00</xmp:MetadataDate>
-      <xmp:ModifyDate>2020-03-11T20:10:12+07:00</xmp:ModifyDate>
-      <xmp:Rating>2</xmp:Rating>
-      <xmpMM:DerivedFrom>
-        <rdf:Description>
-          <stRef:documentID>D91E7F7E064AEF7A630A1DCAC6BF38D0</stRef:documentID>
-          <stRef:originalDocumentID>D91E7F7E064AEF7A630A1DCAC6BF38D0</stRef:originalDocumentID>
-        </rdf:Description>
-      </xmpMM:DerivedFrom>
-      <xmpMM:DocumentID>xmp.did:69493116-46dc-402d-931b-1c9bf37ddaad</xmpMM:DocumentID>
-      <xmpMM:History>
+      </exif:ComponentsConfiguration>
+      <exif:CompressedBitsPerPixel> 1</exif:CompressedBitsPerPixel>
+      <exif:Compression>JPEG compression</exif:Compression>
+      <exif:Contrast>Normal</exif:Contrast>
+      <exif:CustomRendered>Normal process</exif:CustomRendered>
+      <exif:DateTime>2014:04:05 12:39:31</exif:DateTime>
+      <exif:DateTimeOriginal>2014:04:05 12:39:31</exif:DateTimeOriginal>
+      <exif:DigitalZoomRatio>1,00</exif:DigitalZoomRatio>
+      <exif:ExifVersion>Unknown Exif Version</exif:ExifVersion>
+      <exif:ExposureBiasValue>0,00 EV</exif:ExposureBiasValue>
+      <exif:ExposureMode>Auto exposure</exif:ExposureMode>
+      <exif:ExposureProgram>Normal program</exif:ExposureProgram>
+      <exif:ExposureTime>1/160 sec.</exif:ExposureTime>
+      <exif:FNumber>f/5,6</exif:FNumber>
+      <exif:FileSource>DSC</exif:FileSource>
+      <exif:Flash>
+        <rdf:Description/>
+      </exif:Flash>
+      <exif:FlashPixVersion>FlashPix Version 1.0</exif:FlashPixVersion>
+      <exif:FocalLength>55,0 mm</exif:FocalLength>
+      <exif:FocalLengthIn35mmFilm>82</exif:FocalLengthIn35mmFilm>
+      <exif:ISOSpeedRatings>
         <rdf:Seq>
-          <rdf:li>
-            <rdf:Description>
-              <stEvt:action>derived</stEvt:action>
-              <stEvt:parameters>converted from image/x-canon-cr3 to image/jpeg, saved to new location</stEvt:parameters>
-            </rdf:Description>
-          </rdf:li>
-          <rdf:li>
-            <rdf:Description>
-              <stEvt:action>saved</stEvt:action>
-              <stEvt:changed>/</stEvt:changed>
-              <stEvt:instanceID>xmp.iid:69493116-46dc-402d-931b-1c9bf37ddaad</stEvt:instanceID>
-              <stEvt:softwareAgent>Adobe Photoshop Camera Raw 12.2 (Macintosh)</stEvt:softwareAgent>
-              <stEvt:when>2020-03-11T20:10:12+07:00</stEvt:when>
-            </rdf:Description>
-          </rdf:li>
-          <rdf:li>
-            <rdf:Description>
-              <stEvt:action>saved</stEvt:action>
-              <stEvt:changed>/</stEvt:changed>
-              <stEvt:instanceID>xmp.iid:9d7b157e-f1a6-4fbe-8b35-d7cf3cf75dd3</stEvt:instanceID>
-              <stEvt:softwareAgent>Gimp 2.10 (Mac OS)</stEvt:softwareAgent>
-              <stEvt:when>2022-09-26T14:17:52+02:00</stEvt:when>
-            </rdf:Description>
-          </rdf:li>
+          <rdf:li>320</rdf:li>
         </rdf:Seq>
-      </xmpMM:History>
-      <xmpMM:InstanceID>xmp.iid:b6251a9e-0b38-4a48-b01e-cf5a7d9a4bb9</xmpMM:InstanceID>
-      <xmpMM:OriginalDocumentID>D91E7F7E064AEF7A630A1DCAC6BF38D0</xmpMM:OriginalDocumentID>
+      </exif:ISOSpeedRatings>
+      <exif:ImageDescription>                               </exif:ImageDescription>
+      <exif:InteroperabilityIndex>R98</exif:InteroperabilityIndex>
+      <exif:InteroperabilityVersion>0100</exif:InteroperabilityVersion>
+      <exif:LightSource>Unknown</exif:LightSource>
+      <exif:Make>SONY</exif:Make>
+      <exif:MakerNote>35692 bytes undefined data</exif:MakerNote>
+      <exif:MaxApertureValue>4,97 EV (f/5,6)</exif:MaxApertureValue>
+      <exif:MeteringMode>Pattern</exif:MeteringMode>
+      <exif:Model>SLT-A37</exif:Model>
+      <exif:Orientation>Top-left</exif:Orientation>
+      <exif:PixelXDimension>4912</exif:PixelXDimension>
+      <exif:PixelYDimension>3264</exif:PixelYDimension>
+      <exif:PrintImageMatching>106 bytes undefined data</exif:PrintImageMatching>
+      <exif:ResolutionUnit>Inch</exif:ResolutionUnit>
+      <exif:Saturation>Normal</exif:Saturation>
+      <exif:SceneCaptureType>Standard</exif:SceneCaptureType>
+      <exif:SceneType>Directly photographed</exif:SceneType>
+      <exif:Sharpness>Normal</exif:Sharpness>
+      <exif:Software>SLT-A37 v1.02</exif:Software>
+      <exif:UserComment/>
+      <exif:WhiteBalance>Auto white balance</exif:WhiteBalance>
+      <exif:XResolution>350</exif:XResolution>
+      <exif:YCbCrPositioning>Co-sited</exif:YCbCrPositioning>
+      <exif:YResolution>350</exif:YResolution>
+      <xmp:CreateDate>2014:04:05 12:39:31</xmp:CreateDate>
     </rdf:Description>
   </rdf:RDF>
 </x:xmpmeta>
diff --git a/src/commonTest/resources/com/ashampoo/xmp/sample_51_formatted_compact.xmp b/src/commonTest/resources/com/ashampoo/xmp/sample_51_formatted_compact.xmp
index 9e5e197..bc3fbd1 100644
--- a/src/commonTest/resources/com/ashampoo/xmp/sample_51_formatted_compact.xmp
+++ b/src/commonTest/resources/com/ashampoo/xmp/sample_51_formatted_compact.xmp
@@ -2,216 +2,63 @@
 <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.1.3">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
     <rdf:Description rdf:about=""
-        xmlns:GIMP="http://www.gimp.org/xmp/"
-        xmlns:aux="http://ns.adobe.com/exif/1.0/aux/"
-        xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/"
-        xmlns:dc="http://purl.org/dc/elements/1.1/"
-        xmlns:exifEX="http://cipa.jp/exif/1.0/"
-        xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
-        xmlns:tiff="http://ns.adobe.com/tiff/1.0/"
+        xmlns:exif="http://ns.adobe.com/exif/1.0/"
         xmlns:xmp="http://ns.adobe.com/xap/1.0/"
-        xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
-        xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#"
-        xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#"
-      GIMP:API="2.0"
-      GIMP:Platform="Mac OS"
-      GIMP:TimeStamp="1664194672787493"
-      GIMP:Version="2.10.30"
-      aux:ApproximateFocusDistance="161/100"
-      aux:Firmware="1.4.0"
-      aux:FlashCompensation="0/1"
-      aux:ImageNumber="0"
-      aux:Lens="EF70-300mm f/4-5.6L IS USM"
-      aux:LensID="489"
-      aux:LensInfo="70/1 300/1 0/0 0/0"
-      aux:LensSerialNumber="7820004130"
-      aux:SerialNumber="058021001133"
-      crs:AlreadyApplied="True"
-      crs:AutoLateralCA="0"
-      crs:AutoToneDigest="DB958B423B648352F5500DCF12E528B1"
-      crs:AutoToneDigestNoSat="5D637BD0F4976718D5C101714DE7835E"
-      crs:Blacks2012="-27"
-      crs:BlueHue="0"
-      crs:BlueSaturation="0"
-      crs:CameraProfile="Adobe Standard"
-      crs:CameraProfileDigest="38E531B7F49849F74EF6FA15106BD31D"
-      crs:Clarity2012="-15"
-      crs:ColorNoiseReduction="25"
-      crs:ColorNoiseReductionDetail="23"
-      crs:ColorNoiseReductionSmoothness="23"
-      crs:Contrast2012="+56"
-      crs:ConvertToGrayscale="False"
-      crs:DefringeGreenAmount="0"
-      crs:DefringeGreenHueHi="60"
-      crs:DefringeGreenHueLo="40"
-      crs:DefringePurpleAmount="0"
-      crs:DefringePurpleHueHi="70"
-      crs:DefringePurpleHueLo="30"
-      crs:Dehaze="+11"
-      crs:Exposure2012="+0.20"
-      crs:GrainAmount="0"
-      crs:GreenHue="0"
-      crs:GreenSaturation="0"
-      crs:HasCrop="False"
-      crs:HasSettings="True"
-      crs:Highlights2012="-33"
-      crs:HueAdjustmentAqua="0"
-      crs:HueAdjustmentBlue="0"
-      crs:HueAdjustmentGreen="0"
-      crs:HueAdjustmentMagenta="0"
-      crs:HueAdjustmentOrange="0"
-      crs:HueAdjustmentPurple="0"
-      crs:HueAdjustmentRed="0"
-      crs:HueAdjustmentYellow="0"
-      crs:LensManualDistortionAmount="0"
-      crs:LensProfileEnable="0"
-      crs:LensProfileSetup="LensDefaults"
-      crs:LuminanceAdjustmentAqua="0"
-      crs:LuminanceAdjustmentBlue="0"
-      crs:LuminanceAdjustmentGreen="0"
-      crs:LuminanceAdjustmentMagenta="0"
-      crs:LuminanceAdjustmentOrange="0"
-      crs:LuminanceAdjustmentPurple="0"
-      crs:LuminanceAdjustmentRed="0"
-      crs:LuminanceAdjustmentYellow="0"
-      crs:LuminanceNoiseReductionContrast="21"
-      crs:LuminanceNoiseReductionDetail="20"
-      crs:LuminanceSmoothing="20"
-      crs:OverrideLookVignette="False"
-      crs:ParametricDarks="0"
-      crs:ParametricHighlightSplit="75"
-      crs:ParametricHighlights="0"
-      crs:ParametricLights="0"
-      crs:ParametricMidtoneSplit="50"
-      crs:ParametricShadowSplit="25"
-      crs:ParametricShadows="0"
-      crs:PerspectiveAspect="0"
-      crs:PerspectiveHorizontal="0"
-      crs:PerspectiveRotate="0.0"
-      crs:PerspectiveScale="100"
-      crs:PerspectiveUpright="0"
-      crs:PerspectiveVertical="0"
-      crs:PerspectiveX="0.00"
-      crs:PerspectiveY="0.00"
-      crs:PostCropVignetteAmount="0"
-      crs:ProcessVersion="11.0"
-      crs:RawFileName="353A9054.CR3"
-      crs:RedHue="0"
-      crs:RedSaturation="0"
-      crs:Saturation="-1"
-      crs:SaturationAdjustmentAqua="0"
-      crs:SaturationAdjustmentBlue="0"
-      crs:SaturationAdjustmentGreen="0"
-      crs:SaturationAdjustmentMagenta="0"
-      crs:SaturationAdjustmentOrange="0"
-      crs:SaturationAdjustmentPurple="0"
-      crs:SaturationAdjustmentRed="0"
-      crs:SaturationAdjustmentYellow="0"
-      crs:ShadowTint="0"
-      crs:Shadows2012="+42"
-      crs:SharpenDetail="25"
-      crs:SharpenEdgeMasking="0"
-      crs:SharpenRadius="+1.0"
-      crs:Sharpness="40"
-      crs:SplitToningBalance="0"
-      crs:SplitToningHighlightHue="0"
-      crs:SplitToningHighlightSaturation="0"
-      crs:SplitToningShadowHue="0"
-      crs:SplitToningShadowSaturation="0"
-      crs:Temperature="4850"
-      crs:Texture="-9"
-      crs:Tint="-7"
-      crs:ToneCurve="0, 0, 32, 22, 64, 56, 128, 128, 192, 196, 255, 255"
-      crs:ToneCurveBlue="0, 0, 255, 255"
-      crs:ToneCurveGreen="0, 0, 255, 255"
-      crs:ToneCurveName="Medium Contrast"
-      crs:ToneCurveName2012="Linear"
-      crs:ToneCurvePV2012="0, 0, 255, 255"
-      crs:ToneCurvePV2012Blue="0, 0, 255, 255"
-      crs:ToneCurvePV2012Green="0, 0, 255, 255"
-      crs:ToneCurvePV2012Red="0, 0, 255, 255"
-      crs:ToneCurveRed="0, 0, 255, 255"
-      crs:ToneMapStrength="0"
-      crs:UprightCenterMode="0"
-      crs:UprightCenterNormX="0.5"
-      crs:UprightCenterNormY="0.5"
-      crs:UprightFocalLength35mm="35"
-      crs:UprightFocalMode="0"
-      crs:UprightFourSegmentsCount="0"
-      crs:UprightPreview="False"
-      crs:UprightTransformCount="6"
-      crs:UprightVersion="151388160"
-      crs:Version="12.2"
-      crs:Vibrance="+14"
-      crs:VignetteAmount="0"
-      crs:WhiteBalance="Custom"
-      crs:Whites2012="+36"
-      dc:format="image/jpeg"
-      exifEX:LensModel="EF70-300mm f/4-5.6L IS USM"
-      photoshop:DateCreated="2020-03-11T17:37:33.36+08:00"
-      tiff:Orientation="1"
-      xmp:CreateDate="2020-03-11T17:37:33.36+08:00"
-      xmp:CreatorTool="GIMP 2.10"
-      xmp:MetadataDate="2020-03-11T20:10:12+07:00"
-      xmp:ModifyDate="2020-03-11T20:10:12+07:00"
-      xmp:Rating="2"
-      xmpMM:DocumentID="xmp.did:69493116-46dc-402d-931b-1c9bf37ddaad"
-      xmpMM:InstanceID="xmp.iid:b6251a9e-0b38-4a48-b01e-cf5a7d9a4bb9"
-      xmpMM:OriginalDocumentID="D91E7F7E064AEF7A630A1DCAC6BF38D0">
-      <crs:Look>
-        <rdf:Description
-          crs:Amount="1.000000"
-          crs:Copyright="© 2018 Adobe Systems, Inc."
-          crs:Group="lang=&quot;x-default&quot; Profiles"
-          crs:Name="Adobe Color"
-          crs:SupportsAmount="false"
-          crs:SupportsMonochrome="false"
-          crs:SupportsOutputReferred="false"
-          crs:UUID="B952C231111CD8E0ECCF14B86BAA7077">
-        <crs:Parameters
-          crs:CameraProfile="Adobe Standard"
-          crs:ConvertToGrayscale="False"
-          crs:LookTable="E1095149FDB39D7A057BAB208837E2E1"
-          crs:ProcessVersion="11.0"
-          crs:ToneCurvePV2012="0, 0, 22, 16, 40, 35, 127, 127, 224, 230, 240, 246, 255, 255"
-          crs:ToneCurvePV2012Blue="0, 0, 255, 255"
-          crs:ToneCurvePV2012Green="0, 0, 255, 255"
-          crs:ToneCurvePV2012Red="0, 0, 255, 255"
-          crs:Version="12.2"/>
-        </rdf:Description>
-      </crs:Look>
-      <dc:creator>
+      exif:BrightnessValue="5,48 EV (152,72 cd/m^2)"
+      exif:ColorSpace="sRGB"
+      exif:CompressedBitsPerPixel=" 1"
+      exif:Compression="JPEG compression"
+      exif:Contrast="Normal"
+      exif:CustomRendered="Normal process"
+      exif:DateTime="2014:04:05 12:39:31"
+      exif:DateTimeOriginal="2014:04:05 12:39:31"
+      exif:DigitalZoomRatio="1,00"
+      exif:ExifVersion="Unknown Exif Version"
+      exif:ExposureBiasValue="0,00 EV"
+      exif:ExposureMode="Auto exposure"
+      exif:ExposureProgram="Normal program"
+      exif:ExposureTime="1/160 sec."
+      exif:FNumber="f/5,6"
+      exif:FileSource="DSC"
+      exif:FlashPixVersion="FlashPix Version 1.0"
+      exif:FocalLength="55,0 mm"
+      exif:FocalLengthIn35mmFilm="82"
+      exif:ImageDescription="                               "
+      exif:InteroperabilityIndex="R98"
+      exif:InteroperabilityVersion="0100"
+      exif:LightSource="Unknown"
+      exif:Make="SONY"
+      exif:MakerNote="35692 bytes undefined data"
+      exif:MaxApertureValue="4,97 EV (f/5,6)"
+      exif:MeteringMode="Pattern"
+      exif:Model="SLT-A37"
+      exif:Orientation="Top-left"
+      exif:PixelXDimension="4912"
+      exif:PixelYDimension="3264"
+      exif:PrintImageMatching="106 bytes undefined data"
+      exif:ResolutionUnit="Inch"
+      exif:Saturation="Normal"
+      exif:SceneCaptureType="Standard"
+      exif:SceneType="Directly photographed"
+      exif:Sharpness="Normal"
+      exif:Software="SLT-A37 v1.02"
+      exif:UserComment=""
+      exif:WhiteBalance="Auto white balance"
+      exif:XResolution="350"
+      exif:YCbCrPositioning="Co-sited"
+      exif:YResolution="350"
+      xmp:CreateDate="2014:04:05 12:39:31">
+      <exif:ComponentsConfiguration>
         <rdf:Seq>
-          <rdf:li>SippakorN</rdf:li>
+          <rdf:li>Y Cb Cr -</rdf:li>
         </rdf:Seq>
-      </dc:creator>
-      <dc:rights>
-        <rdf:Alt>
-          <rdf:li xml:lang="x-default">@Sippakorn1955</rdf:li>
-        </rdf:Alt>
-      </dc:rights>
-      <xmpMM:DerivedFrom
-        stRef:documentID="D91E7F7E064AEF7A630A1DCAC6BF38D0"
-        stRef:originalDocumentID="D91E7F7E064AEF7A630A1DCAC6BF38D0"/>
-      <xmpMM:History>
+      </exif:ComponentsConfiguration>
+      <exif:Flash rdf:parseType="Resource"/>
+      <exif:ISOSpeedRatings>
         <rdf:Seq>
-          <rdf:li
-            stEvt:action="derived"
-            stEvt:parameters="converted from image/x-canon-cr3 to image/jpeg, saved to new location"/>
-          <rdf:li
-            stEvt:action="saved"
-            stEvt:changed="/"
-            stEvt:instanceID="xmp.iid:69493116-46dc-402d-931b-1c9bf37ddaad"
-            stEvt:softwareAgent="Adobe Photoshop Camera Raw 12.2 (Macintosh)"
-            stEvt:when="2020-03-11T20:10:12+07:00"/>
-          <rdf:li
-            stEvt:action="saved"
-            stEvt:changed="/"
-            stEvt:instanceID="xmp.iid:9d7b157e-f1a6-4fbe-8b35-d7cf3cf75dd3"
-            stEvt:softwareAgent="Gimp 2.10 (Mac OS)"
-            stEvt:when="2022-09-26T14:17:52+02:00"/>
+          <rdf:li>320</rdf:li>
         </rdf:Seq>
-      </xmpMM:History>
+      </exif:ISOSpeedRatings>
     </rdf:Description>
   </rdf:RDF>
 </x:xmpmeta>
diff --git a/src/commonTest/resources/com/ashampoo/xmp/sample_52.xmp b/src/commonTest/resources/com/ashampoo/xmp/sample_52.xmp
index 4519be8..d78a614 100644
--- a/src/commonTest/resources/com/ashampoo/xmp/sample_52.xmp
+++ b/src/commonTest/resources/com/ashampoo/xmp/sample_52.xmp
@@ -1,250 +1,421 @@
-<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 6.0.0">
-   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
-      <rdf:Description rdf:about=""
-            xmlns:lr="http://ns.adobe.com/lightroom/1.0/"
-            xmlns:aux="http://ns.adobe.com/exif/1.0/aux/"
-            xmlns:exif="http://ns.adobe.com/exif/1.0/"
-            xmlns:exifEX="http://cipa.jp/exif/1.0/"
-            xmlns:xmp="http://ns.adobe.com/xap/1.0/"
-            xmlns:darktable="http://darktable.sf.net/"
-            xmlns:tiff="http://ns.adobe.com/tiff/1.0/"
-            xmlns:dc="http://purl.org/dc/elements/1.1/"
-            xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
-            xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">
-         <lr:hierarchicalSubject>
-            <rdf:Seq>
-               <rdf:li>dxfoto|published</rdf:li>
-            </rdf:Seq>
-         </lr:hierarchicalSubject>
-         <aux:Firmware>Firmware Version 1.1.2</aux:Firmware>
-         <aux:LensInfo>55/1 250/1 0/0 0/0</aux:LensInfo>
-         <aux:Lens>Canon EF-S 55-250mm f/4-5.6 IS STM</aux:Lens>
-         <aux:LensID>4148</aux:LensID>
-         <aux:FlashCompensation>0/1</aux:FlashCompensation>
-         <exif:WhiteBalance>0</exif:WhiteBalance>
-         <exif:ExposureMode>1</exif:ExposureMode>
-         <exif:PixelYDimension>2670</exif:PixelYDimension>
-         <exif:MaxApertureValue>208885/36926</exif:MaxApertureValue>
-         <exif:ISOSpeedRatings>
-            <rdf:Seq>
-               <rdf:li>250</rdf:li>
-            </rdf:Seq>
-         </exif:ISOSpeedRatings>
-         <exif:GPSLatitude>55,54.679N</exif:GPSLatitude>
-         <exif:GPSLongitude>36,57.8089E</exif:GPSLongitude>
-         <exif:FocalPlaneResolutionUnit>2</exif:FocalPlaneResolutionUnit>
-         <exif:ColorSpace>1</exif:ColorSpace>
-         <exif:GPSVersionID>2.2.0.0</exif:GPSVersionID>
-         <exif:ApertureValue>368640/65536</exif:ApertureValue>
-         <exif:FlashPixVersion>0100</exif:FlashPixVersion>
-         <exif:SubsecTimeOriginal>47</exif:SubsecTimeOriginal>
-         <exif:FocalPlaneYResolution>3648000/599</exif:FocalPlaneYResolution>
-         <exif:ComponentsConfiguration>
-            <rdf:Seq>
-               <rdf:li>1</rdf:li>
-               <rdf:li>2</rdf:li>
-               <rdf:li>3</rdf:li>
-               <rdf:li>0</rdf:li>
-            </rdf:Seq>
-         </exif:ComponentsConfiguration>
-         <exif:ExposureTime>1/400</exif:ExposureTime>
-         <exif:GPSLongitudeRef>E</exif:GPSLongitudeRef>
-         <exif:FocalLength>250/1</exif:FocalLength>
-         <exif:CustomRendered>0</exif:CustomRendered>
-         <exif:ShutterSpeedValue>565248/65536</exif:ShutterSpeedValue>
-         <exif:SubsecTimeDigitized>47</exif:SubsecTimeDigitized>
-         <exif:GPSLatitudeRef>N</exif:GPSLatitudeRef>
-         <exif:SceneCaptureType>0</exif:SceneCaptureType>
-         <exif:ExposureProgram>1</exif:ExposureProgram>
-         <exif:FNumber>71/10</exif:FNumber>
-         <exif:MeteringMode>5</exif:MeteringMode>
-         <exif:Flash rdf:parseType="Resource">
-            <exif:Function>False</exif:Function>
-            <exif:Fired>False</exif:Fired>
-            <exif:Return>0</exif:Return>
-            <exif:Mode>2</exif:Mode>
-            <exif:RedEyeMode>False</exif:RedEyeMode>
-         </exif:Flash>
-         <exif:FocalPlaneXResolution>5472000/899</exif:FocalPlaneXResolution>
-         <exif:ExposureBiasValue>0/1</exif:ExposureBiasValue>
-         <exif:PixelXDimension>4000</exif:PixelXDimension>
-         <exif:ExifVersion>0230</exif:ExifVersion>
-         <exif:SubsecTime>47</exif:SubsecTime>
-         <exifEX:BodySerialNumber>103025021031</exifEX:BodySerialNumber>
-         <exifEX:PhotographicSensitivity>250</exifEX:PhotographicSensitivity>
-         <exifEX:RecommendedExposureIndex>250</exifEX:RecommendedExposureIndex>
-         <exifEX:LensModel>EF-S55-250mm f/4-5.6 IS STM</exifEX:LensModel>
-         <exifEX:LensSerialNumber>0000800dcf</exifEX:LensSerialNumber>
-         <exifEX:SensitivityType>2</exifEX:SensitivityType>
-         <exifEX:LensSpecification>
-            <rdf:Seq>
-               <rdf:li>55/1</rdf:li>
-               <rdf:li>250/1</rdf:li>
-               <rdf:li>0/1</rdf:li>
-               <rdf:li>0/1</rdf:li>
-            </rdf:Seq>
-         </exifEX:LensSpecification>
-         <xmp:ModifyDate>2019-07-15T20:09:19.47</xmp:ModifyDate>
-         <xmp:Rating>0</xmp:Rating>
-         <xmp:CreateDate>2019-07-14T09:21:11.47</xmp:CreateDate>
-         <xmp:CreatorTool>darktable 2.6.2</xmp:CreatorTool>
-         <darktable:auto_presets_applied>1</darktable:auto_presets_applied>
-         <darktable:history>
-            <rdf:Seq>
-               <rdf:li rdf:parseType="Resource">
-                  <darktable:params>000000400000003f0000003f</darktable:params>
-                  <darktable:operation>sharpen</darktable:operation>
-                  <darktable:enabled>1</darktable:enabled>
-                  <darktable:modversion>1</darktable:modversion>
-                  <darktable:blendop_version>8</darktable:blendop_version>
-                  <darktable:multi_priority>0</darktable:multi_priority>
-                  <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-                  <darktable:multi_name/>
-               </rdf:li>
-               <rdf:li rdf:parseType="Resource">
-                  <darktable:params>ffffffff</darktable:params>
-                  <darktable:operation>flip</darktable:operation>
-                  <darktable:enabled>1</darktable:enabled>
-                  <darktable:modversion>2</darktable:modversion>
-                  <darktable:blendop_version>8</darktable:blendop_version>
-                  <darktable:multi_priority>0</darktable:multi_priority>
-                  <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-                  <darktable:multi_name/>
-               </rdf:li>
-               <rdf:li rdf:parseType="Resource">
-                  <darktable:params>gz09eJxjYIAAM6vnNnqyn22E9n235b6aa3cy6rVdRaK9/Y970fYf95bbMzA0QPEoGEqADYnNhCELiVMAudcSGA==</darktable:params>
-                  <darktable:operation>basecurve</darktable:operation>
-                  <darktable:enabled>1</darktable:enabled>
-                  <darktable:modversion>5</darktable:modversion>
-                  <darktable:blendop_version>8</darktable:blendop_version>
-                  <darktable:multi_priority>0</darktable:multi_priority>
-                  <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-                  <darktable:multi_name/>
-               </rdf:li>
-               <rdf:li rdf:parseType="Resource">
-                  <darktable:params>00000000e040f23c4ee4053efce6413f80c75b3f0000000000000000cdcc4c3ecdcc4c3ecdcc4c3fcdcc4c3ecdcc4c3fcdcc4c3fcdcc4c3ecdcc4c3f000000000000000000000000010000000000000001000000</darktable:params>
-                  <darktable:operation>clipping</darktable:operation>
-                  <darktable:enabled>1</darktable:enabled>
-                  <darktable:modversion>5</darktable:modversion>
-                  <darktable:blendop_version>8</darktable:blendop_version>
-                  <darktable:multi_priority>0</darktable:multi_priority>
-                  <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-                  <darktable:multi_name/>
-               </rdf:li>
-               <rdf:li rdf:parseType="Resource">
-                  <darktable:params>00000000501a1c3d0c5cb53d9a16443feef9503f0000000000000000cdcc4c3ecdcc4c3ecdcc4c3fcdcc4c3ecdcc4c3fcdcc4c3fcdcc4c3ecdcc4c3f000000000000000000000000010000000000000001000000</darktable:params>
-                  <darktable:operation>clipping</darktable:operation>
-                  <darktable:enabled>1</darktable:enabled>
-                  <darktable:modversion>5</darktable:modversion>
-                  <darktable:blendop_version>8</darktable:blendop_version>
-                  <darktable:multi_priority>0</darktable:multi_priority>
-                  <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-                  <darktable:multi_name/>
-               </rdf:li>
-               <rdf:li rdf:parseType="Resource">
-                  <darktable:params>d0ccccbdd0cccc3dd0cc4cbd</darktable:params>
-                  <darktable:operation>colisa</darktable:operation>
-                  <darktable:enabled>1</darktable:enabled>
-                  <darktable:modversion>1</darktable:modversion>
-                  <darktable:blendop_version>8</darktable:blendop_version>
-                  <darktable:multi_priority>0</darktable:multi_priority>
-                  <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-                  <darktable:multi_name/>
-               </rdf:li>
-               <rdf:li rdf:parseType="Resource">
-                  <darktable:params>01000000cdcccc3ecdcc8c3f0000803ecdcc4c3e</darktable:params>
-                  <darktable:operation>bilat</darktable:operation>
-                  <darktable:enabled>1</darktable:enabled>
-                  <darktable:modversion>3</darktable:modversion>
-                  <darktable:blendop_version>8</darktable:blendop_version>
-                  <darktable:multi_priority>0</darktable:multi_priority>
-                  <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-                  <darktable:multi_name/>
-               </rdf:li>
-               <rdf:li rdf:parseType="Resource">
-                  <darktable:params>000000400000803f0000003f</darktable:params>
-                  <darktable:operation>sharpen</darktable:operation>
-                  <darktable:enabled>1</darktable:enabled>
-                  <darktable:modversion>1</darktable:modversion>
-                  <darktable:blendop_version>8</darktable:blendop_version>
-                  <darktable:multi_priority>0</darktable:multi_priority>
-                  <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-                  <darktable:multi_name/>
-               </rdf:li>
-               <rdf:li rdf:parseType="Resource">
-                  <darktable:params>01000000cdcccc3ecdcc8c3f9a99993ecdcc4c3e</darktable:params>
-                  <darktable:operation>bilat</darktable:operation>
-                  <darktable:enabled>1</darktable:enabled>
-                  <darktable:modversion>3</darktable:modversion>
-                  <darktable:blendop_version>8</darktable:blendop_version>
-                  <darktable:multi_priority>0</darktable:multi_priority>
-                  <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-                  <darktable:multi_name/>
-               </rdf:li>
-               <rdf:li rdf:parseType="Resource">
-                  <darktable:params>0000000000000000000048420000c842d9899d3dc332d53e8bac483f</darktable:params>
-                  <darktable:operation>levels</darktable:operation>
-                  <darktable:enabled>1</darktable:enabled>
-                  <darktable:modversion>2</darktable:modversion>
-                  <darktable:blendop_version>8</darktable:blendop_version>
-                  <darktable:multi_priority>0</darktable:multi_priority>
-                  <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-                  <darktable:multi_name/>
-               </rdf:li>
-               <rdf:li rdf:parseType="Resource">
-                  <darktable:params>0000000000000000000000000100000000000000</darktable:params>
-                  <darktable:operation>demosaic</darktable:operation>
-                  <darktable:enabled>1</darktable:enabled>
-                  <darktable:modversion>3</darktable:modversion>
-                  <darktable:blendop_version>8</darktable:blendop_version>
-                  <darktable:multi_priority>0</darktable:multi_priority>
-                  <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-                  <darktable:multi_name/>
-               </rdf:li>
-               <rdf:li rdf:parseType="Resource">
-                  <darktable:params>32000000</darktable:params>
-                  <darktable:operation>cacorrect</darktable:operation>
-                  <darktable:enabled>1</darktable:enabled>
-                  <darktable:modversion>1</darktable:modversion>
-                  <darktable:blendop_version>8</darktable:blendop_version>
-                  <darktable:multi_priority>0</darktable:multi_priority>
-                  <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-                  <darktable:multi_name/>
-               </rdf:li>
-            </rdf:Seq>
-         </darktable:history>
-         <darktable:history_end>12</darktable:history_end>
-         <darktable:raw_params>0</darktable:raw_params>
-         <darktable:xmp_version>2</darktable:xmp_version>
-         <tiff:Orientation>1</tiff:Orientation>
-         <tiff:XResolution>300</tiff:XResolution>
-         <tiff:ResolutionUnit>2</tiff:ResolutionUnit>
-         <tiff:Make>Canon</tiff:Make>
-         <tiff:YResolution>300</tiff:YResolution>
-         <tiff:Model>Canon EOS 70D</tiff:Model>
-         <dc:subject>
-            <rdf:Bag>
-               <rdf:li>dxfoto</rdf:li>
-               <rdf:li>published</rdf:li>
-            </rdf:Bag>
-         </dc:subject>
-         <dc:rights>
-            <rdf:Alt>
-               <rdf:li xml:lang="x-default">CC-BY 3.0</rdf:li>
-            </rdf:Alt>
-         </dc:rights>
-         <dc:description>
-            <rdf:Alt>
-               <rdf:li xml:lang="x-default">honeybee perching on yellow flower</rdf:li>
-            </rdf:Alt>
-         </dc:description>
-         <dc:creator>
-            <rdf:Seq>
-               <rdf:li>dxfoto.ru</rdf:li>
-            </rdf:Seq>
-         </dc:creator>
-         <photoshop:DateCreated>2019-07-14T09:21:11.47</photoshop:DateCreated>
-         <xmpMM:DerivedFrom>_MG_9604.CR2</xmpMM:DerivedFrom>
-      </rdf:Description>
-   </rdf:RDF>
+<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
+<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 12.27'>
+<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
+
+ <rdf:Description rdf:about=''
+  xmlns:Iptc4xmpCore='http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/'>
+  <Iptc4xmpCore:CountryCode>CZE</Iptc4xmpCore:CountryCode>
+  <Iptc4xmpCore:Location>23614 </Iptc4xmpCore:Location>
+ </rdf:Description>
+
+ <rdf:Description rdf:about=''
+  xmlns:Iptc4xmpExt='http://iptc.org/std/Iptc4xmpExt/2008-02-29/'>
+  <Iptc4xmpExt:LocationCreated>
+   <rdf:Bag>
+    <rdf:li rdf:parseType='Resource'>
+     <Iptc4xmpExt:City>Kublov</Iptc4xmpExt:City>
+     <Iptc4xmpExt:CountryName>Czechia</Iptc4xmpExt:CountryName>
+     <Iptc4xmpExt:ProvinceState>Central Bohemian Region</Iptc4xmpExt:ProvinceState>
+    </rdf:li>
+   </rdf:Bag>
+  </Iptc4xmpExt:LocationCreated>
+ </rdf:Description>
+
+ <rdf:Description rdf:about=''
+  xmlns:MicrosoftPhoto='http://ns.microsoft.com/photo/1.0'>
+  <MicrosoftPhoto:Rating>99</MicrosoftPhoto:Rating>
+ </rdf:Description>
+
+ <rdf:Description rdf:about=''
+  xmlns:aux='http://ns.adobe.com/exif/1.0/aux/'>
+  <aux:ApproximateFocusDistance>382/100</aux:ApproximateFocusDistance>
+  <aux:Firmware>2.0.0</aux:Firmware>
+  <aux:FlashCompensation>0/1</aux:FlashCompensation>
+  <aux:ImageNumber>0</aux:ImageNumber>
+  <aux:Lens>EF70-200mm f/2.8L USM</aux:Lens>
+  <aux:LensID>165</aux:LensID>
+  <aux:LensInfo>70/1 200/1 0/0 0/0</aux:LensInfo>
+  <aux:SerialNumber>2981205828</aux:SerialNumber>
+ </rdf:Description>
+
+ <rdf:Description rdf:about=''
+  xmlns:dc='http://purl.org/dc/elements/1.1/'>
+  <dc:creator>
+   <rdf:Seq>
+    <rdf:li>Eva Machackova</rdf:li>
+   </rdf:Seq>
+  </dc:creator>
+  <dc:format>image/jpeg</dc:format>
+  <dc:subject>
+   <rdf:Bag>
+    <rdf:li>Rys ostrovid</rdf:li>
+    <rdf:li>Křivoklátsko</rdf:li>
+    <rdf:li>Kublov</rdf:li>
+    <rdf:li>Europe</rdf:li>
+    <rdf:li>Czech</rdf:li>
+   </rdf:Bag>
+  </dc:subject>
+  <dc:title>
+   <rdf:Alt>
+    <rdf:li xml:lang='x-default'>_MG_1573_1</rdf:li>
+   </rdf:Alt>
+  </dc:title>
+ </rdf:Description>
+
+ <rdf:Description rdf:about=''
+  xmlns:exif='http://ns.adobe.com/exif/1.0/'>
+  <exif:ApertureValue>2970854/1000000</exif:ApertureValue>
+  <exif:ColorSpace>65535</exif:ColorSpace>
+  <exif:CustomRendered>0</exif:CustomRendered>
+  <exif:DateTimeDigitized>2015-01-18T10:45:53.240+01:00</exif:DateTimeDigitized>
+  <exif:DateTimeOriginal>2015-01-18T10:45:53.240+01:00</exif:DateTimeOriginal>
+  <exif:ExposureBiasValue>0/1</exif:ExposureBiasValue>
+  <exif:ExposureMode>0</exif:ExposureMode>
+  <exif:ExposureProgram>3</exif:ExposureProgram>
+  <exif:ExposureTime>1/800</exif:ExposureTime>
+  <exif:FNumber>28/10</exif:FNumber>
+  <exif:Flash rdf:parseType='Resource'>
+   <exif:Fired>False</exif:Fired>
+   <exif:Function>True</exif:Function>
+   <exif:Mode>2</exif:Mode>
+   <exif:RedEyeMode>False</exif:RedEyeMode>
+   <exif:Return>0</exif:Return>
+  </exif:Flash>
+  <exif:FocalLength>200/1</exif:FocalLength>
+  <exif:FocalPlaneResolutionUnit>2</exif:FocalPlaneResolutionUnit>
+  <exif:FocalPlaneXResolution>5184000/907</exif:FocalPlaneXResolution>
+  <exif:FocalPlaneYResolution>3456000/595</exif:FocalPlaneYResolution>
+  <exif:GPSAltitude>44540597/100000</exif:GPSAltitude>
+  <exif:GPSAltitudeRef>0</exif:GPSAltitudeRef>
+  <exif:GPSLatitude>49,56.622156N</exif:GPSLatitude>
+  <exif:GPSLongitude>13,52.600764E</exif:GPSLongitude>
+  <exif:GPSMapDatum>WGS-84</exif:GPSMapDatum>
+  <exif:GPSTimeStamp>2015-01-18T09:45:53.240Z</exif:GPSTimeStamp>
+  <exif:GPSVersionID>2.0.0.0</exif:GPSVersionID>
+  <exif:ISOSpeedRatings>
+   <rdf:Seq>
+    <rdf:li>1600</rdf:li>
+   </rdf:Seq>
+  </exif:ISOSpeedRatings>
+  <exif:MaxApertureValue>3/1</exif:MaxApertureValue>
+  <exif:MeteringMode>2</exif:MeteringMode>
+  <exif:PixelXDimension>3364</exif:PixelXDimension>
+  <exif:PixelYDimension>2968</exif:PixelYDimension>
+  <exif:SceneCaptureType>0</exif:SceneCaptureType>
+  <exif:ShutterSpeedValue>9643856/1000000</exif:ShutterSpeedValue>
+  <exif:WhiteBalance>1</exif:WhiteBalance>
+ </rdf:Description>
+
+ <rdf:Description rdf:about=''
+  xmlns:exifEX='http://cipa.jp/exif/1.0/'>
+  <exifEX:BodySerialNumber>2981205828</exifEX:BodySerialNumber>
+  <exifEX:LensModel>EF70-200mm f/2.8L USM</exifEX:LensModel>
+  <exifEX:LensSpecification>
+   <rdf:Bag>
+    <rdf:li>70/1</rdf:li>
+    <rdf:li>200/1</rdf:li>
+    <rdf:li>0</rdf:li>
+    <rdf:li>0</rdf:li>
+   </rdf:Bag>
+  </exifEX:LensSpecification>
+ </rdf:Description>
+
+ <rdf:Description rdf:about=''
+  xmlns:idimager='http://ns.idimager.com/idimager/1.0/'>
+  <idimager:xmp_initialized>1</idimager:xmp_initialized>
+ </rdf:Description>
+
+ <rdf:Description rdf:about=''
+  xmlns:lr='http://ns.adobe.com/lightroom/1.0/'>
+  <lr:hierarchicalSubject>
+   <rdf:Bag>
+    <rdf:li>Savci|Rys ostrovid</rdf:li>
+    <rdf:li>Places|Europe|Czech|Křivoklátsko</rdf:li>
+    <rdf:li>Places|Europe|Czech|Křivoklátsko|Kublov</rdf:li>
+    <rdf:li>Places|Europe</rdf:li>
+    <rdf:li>Places|Europe|Czech</rdf:li>
+   </rdf:Bag>
+  </lr:hierarchicalSubject>
+ </rdf:Description>
+
+ <rdf:Description rdf:about=''
+  xmlns:photoshop='http://ns.adobe.com/photoshop/1.0/'>
+  <photoshop:City>Kublov</photoshop:City>
+  <photoshop:ColorMode>3</photoshop:ColorMode>
+  <photoshop:Country>Czechia</photoshop:Country>
+  <photoshop:DateCreated>2015-01-18T10:45:53.240+01:00</photoshop:DateCreated>
+  <photoshop:ICCProfile>sRGB IEC61966-2.1</photoshop:ICCProfile>
+  <photoshop:State>Central Bohemian Region</photoshop:State>
+ </rdf:Description>
+
+ <rdf:Description rdf:about=''
+  xmlns:tiff='http://ns.adobe.com/tiff/1.0/'>
+  <tiff:Artist>Eva Machackova</tiff:Artist>
+  <tiff:BitsPerSample>
+   <rdf:Seq>
+    <rdf:li>8</rdf:li>
+   </rdf:Seq>
+  </tiff:BitsPerSample>
+  <tiff:Compression>6</tiff:Compression>
+  <tiff:DateTime>2015-01-18T10:45:53.240+01:00</tiff:DateTime>
+  <tiff:Make>Canon</tiff:Make>
+  <tiff:Model>Canon EOS 7D</tiff:Model>
+  <tiff:Orientation>1</tiff:Orientation>
+  <tiff:ResolutionUnit>2</tiff:ResolutionUnit>
+  <tiff:Software>Adobe Photoshop CC 2014 (Windows)</tiff:Software>
+  <tiff:XResolution>3000000/10000</tiff:XResolution>
+  <tiff:YResolution>3000000/10000</tiff:YResolution>
+ </rdf:Description>
+
+ <rdf:Description rdf:about=''
+  xmlns:xmp='http://ns.adobe.com/xap/1.0/'>
+  <xmp:CreateDate>2015-01-18T10:45:53+01:00</xmp:CreateDate>
+  <xmp:CreatorTool>Photo Supreme (3.0.3.2061)</xmp:CreatorTool>
+  <xmp:MetadataDate>2016-10-22T11:07:15.226+01:00</xmp:MetadataDate>
+  <xmp:ModifyDate>2015-01-24T18:40:12+01:00</xmp:ModifyDate>
+  <xmp:Rating>2</xmp:Rating>
+ </rdf:Description>
+
+ <rdf:Description rdf:about=''
+  xmlns:stEvt='http://ns.adobe.com/xap/1.0/sType/ResourceEvent#'
+  xmlns:stRef='http://ns.adobe.com/xap/1.0/sType/ResourceRef#'
+  xmlns:xmpMM='http://ns.adobe.com/xap/1.0/mm/'>
+  <xmpMM:DerivedFrom rdf:parseType='Resource'>
+   <stRef:documentID>xmp.did:eaa16c47-805c-0447-a2a7-89b902ffac12</stRef:documentID>
+   <stRef:instanceID>xmp.iid:bed40db5-cd53-8641-84ab-b36224e3aec0</stRef:instanceID>
+   <stRef:originalDocumentID>6AC5E3D6229714EAD2DD6804103177A0</stRef:originalDocumentID>
+  </xmpMM:DerivedFrom>
+  <xmpMM:DocumentID>adobe:docid:photoshop:05d4c353-a3f0-11e4-9ecb-ca3a401e6bd9</xmpMM:DocumentID>
+  <xmpMM:History>
+   <rdf:Seq>
+    <rdf:li rdf:about=''/>
+    <rdf:li rdf:about=''/>
+    <rdf:li rdf:parseType='Resource'>
+     <stEvt:action>derived</stEvt:action>
+     <stEvt:parameters>converted from image/x-canon-cr2 to image/tiff</stEvt:parameters>
+    </rdf:li>
+    <rdf:li rdf:parseType='Resource'>
+     <stEvt:action>saved</stEvt:action>
+     <stEvt:changed>/</stEvt:changed>
+     <stEvt:instanceID>xmp.iid:eaa16c47-805c-0447-a2a7-89b902ffac12</stEvt:instanceID>
+     <stEvt:softwareAgent>Adobe Photoshop Camera Raw 8.7.1 (Windows)</stEvt:softwareAgent>
+     <stEvt:when>2015-01-24T18:36:04+01:00</stEvt:when>
+    </rdf:li>
+    <rdf:li rdf:parseType='Resource'>
+     <stEvt:action>saved</stEvt:action>
+     <stEvt:changed>/</stEvt:changed>
+     <stEvt:instanceID>xmp.iid:bed40db5-cd53-8641-84ab-b36224e3aec0</stEvt:instanceID>
+     <stEvt:softwareAgent>Adobe Photoshop CC 2014 (Windows)</stEvt:softwareAgent>
+     <stEvt:when>2015-01-24T18:39:40+01:00</stEvt:when>
+    </rdf:li>
+    <rdf:li rdf:parseType='Resource'>
+     <stEvt:action>converted</stEvt:action>
+     <stEvt:parameters>from image/tiff to image/jpeg</stEvt:parameters>
+    </rdf:li>
+    <rdf:li rdf:parseType='Resource'>
+     <stEvt:action>derived</stEvt:action>
+     <stEvt:parameters>converted from image/tiff to image/jpeg</stEvt:parameters>
+    </rdf:li>
+    <rdf:li rdf:parseType='Resource'>
+     <stEvt:action>saved</stEvt:action>
+     <stEvt:changed>/</stEvt:changed>
+     <stEvt:instanceID>xmp.iid:8173f4be-25aa-3c4f-914c-e8b283a62d0d</stEvt:instanceID>
+     <stEvt:softwareAgent>Adobe Photoshop CC 2014 (Windows)</stEvt:softwareAgent>
+     <stEvt:when>2015-01-24T18:39:40+01:00</stEvt:when>
+    </rdf:li>
+    <rdf:li rdf:parseType='Resource'>
+     <stEvt:action>saved</stEvt:action>
+     <stEvt:changed>/</stEvt:changed>
+     <stEvt:instanceID>xmp.iid:45212f11-0c60-4b47-9de5-4977445eeea5</stEvt:instanceID>
+     <stEvt:softwareAgent>Adobe Photoshop CC 2014 (Windows)</stEvt:softwareAgent>
+     <stEvt:when>2015-01-24T18:40:12+01:00</stEvt:when>
+    </rdf:li>
+   </rdf:Seq>
+  </xmpMM:History>
+  <xmpMM:InstanceID>xmp.iid:45212f11-0c60-4b47-9de5-4977445eeea5</xmpMM:InstanceID>
+  <xmpMM:OriginalDocumentID>6AC5E3D6229714EAD2DD6804103177A0</xmpMM:OriginalDocumentID>
+  <xmpMM:PreservedFileName>_MG_1573.CR2</xmpMM:PreservedFileName>
+ </rdf:Description>
+
+ <rdf:Description rdf:about=''
+  xmlns:crs='http://ns.adobe.com/camera-raw-settings/1.0/'>
+  <crs:AlreadyApplied>True</crs:AlreadyApplied>
+  <crs:AutoLateralCA>0</crs:AutoLateralCA>
+  <crs:AutoWhiteVersion>134348800</crs:AutoWhiteVersion>
+  <crs:Blacks2012>0</crs:Blacks2012>
+  <crs:BlueHue>0</crs:BlueHue>
+  <crs:BlueSaturation>0</crs:BlueSaturation>
+  <crs:CameraProfile>Camera Standard</crs:CameraProfile>
+  <crs:CameraProfileDigest>18F667CAF0021C83697E05BE19459589</crs:CameraProfileDigest>
+  <crs:Clarity2012>0</crs:Clarity2012>
+  <crs:ColorNoiseReduction>25</crs:ColorNoiseReduction>
+  <crs:ColorNoiseReductionDetail>50</crs:ColorNoiseReductionDetail>
+  <crs:ColorNoiseReductionSmoothness>50</crs:ColorNoiseReductionSmoothness>
+  <crs:Contrast2012>0</crs:Contrast2012>
+  <crs:ConvertToGrayscale>False</crs:ConvertToGrayscale>
+  <crs:CropAngle>0</crs:CropAngle>
+  <crs:CropBottom>1</crs:CropBottom>
+  <crs:CropConstrainToWarp>1</crs:CropConstrainToWarp>
+  <crs:CropLeft>0.000687</crs:CropLeft>
+  <crs:CropRight>1</crs:CropRight>
+  <crs:CropTop>0.038144</crs:CropTop>
+  <crs:DefringeGreenAmount>0</crs:DefringeGreenAmount>
+  <crs:DefringeGreenHueHi>60</crs:DefringeGreenHueHi>
+  <crs:DefringeGreenHueLo>40</crs:DefringeGreenHueLo>
+  <crs:DefringePurpleAmount>0</crs:DefringePurpleAmount>
+  <crs:DefringePurpleHueHi>70</crs:DefringePurpleHueHi>
+  <crs:DefringePurpleHueLo>30</crs:DefringePurpleHueLo>
+  <crs:Exposure2012>0.00</crs:Exposure2012>
+  <crs:GrainAmount>0</crs:GrainAmount>
+  <crs:GreenHue>0</crs:GreenHue>
+  <crs:GreenSaturation>0</crs:GreenSaturation>
+  <crs:HasCrop>True</crs:HasCrop>
+  <crs:HasSettings>True</crs:HasSettings>
+  <crs:Highlights2012>0</crs:Highlights2012>
+  <crs:HueAdjustmentAqua>0</crs:HueAdjustmentAqua>
+  <crs:HueAdjustmentBlue>0</crs:HueAdjustmentBlue>
+  <crs:HueAdjustmentGreen>0</crs:HueAdjustmentGreen>
+  <crs:HueAdjustmentMagenta>0</crs:HueAdjustmentMagenta>
+  <crs:HueAdjustmentOrange>0</crs:HueAdjustmentOrange>
+  <crs:HueAdjustmentPurple>0</crs:HueAdjustmentPurple>
+  <crs:HueAdjustmentRed>0</crs:HueAdjustmentRed>
+  <crs:HueAdjustmentYellow>0</crs:HueAdjustmentYellow>
+  <crs:LensManualDistortionAmount>0</crs:LensManualDistortionAmount>
+  <crs:LensProfileEnable>0</crs:LensProfileEnable>
+  <crs:LensProfileSetup>LensDefaults</crs:LensProfileSetup>
+  <crs:LuminanceAdjustmentAqua>0</crs:LuminanceAdjustmentAqua>
+  <crs:LuminanceAdjustmentBlue>0</crs:LuminanceAdjustmentBlue>
+  <crs:LuminanceAdjustmentGreen>0</crs:LuminanceAdjustmentGreen>
+  <crs:LuminanceAdjustmentMagenta>0</crs:LuminanceAdjustmentMagenta>
+  <crs:LuminanceAdjustmentOrange>0</crs:LuminanceAdjustmentOrange>
+  <crs:LuminanceAdjustmentPurple>0</crs:LuminanceAdjustmentPurple>
+  <crs:LuminanceAdjustmentRed>0</crs:LuminanceAdjustmentRed>
+  <crs:LuminanceAdjustmentYellow>0</crs:LuminanceAdjustmentYellow>
+  <crs:LuminanceSmoothing>0</crs:LuminanceSmoothing>
+  <crs:ParametricDarks>0</crs:ParametricDarks>
+  <crs:ParametricHighlightSplit>75</crs:ParametricHighlightSplit>
+  <crs:ParametricHighlights>0</crs:ParametricHighlights>
+  <crs:ParametricLights>0</crs:ParametricLights>
+  <crs:ParametricMidtoneSplit>50</crs:ParametricMidtoneSplit>
+  <crs:ParametricShadowSplit>25</crs:ParametricShadowSplit>
+  <crs:ParametricShadows>0</crs:ParametricShadows>
+  <crs:PerspectiveAspect>0</crs:PerspectiveAspect>
+  <crs:PerspectiveHorizontal>0</crs:PerspectiveHorizontal>
+  <crs:PerspectiveRotate>0.0</crs:PerspectiveRotate>
+  <crs:PerspectiveScale>100</crs:PerspectiveScale>
+  <crs:PerspectiveUpright>0</crs:PerspectiveUpright>
+  <crs:PerspectiveVertical>0</crs:PerspectiveVertical>
+  <crs:PostCropVignetteAmount>0</crs:PostCropVignetteAmount>
+  <crs:ProcessVersion>6.7</crs:ProcessVersion>
+  <crs:RawFileName>_MG_1573.CR2</crs:RawFileName>
+  <crs:RedHue>0</crs:RedHue>
+  <crs:RedSaturation>0</crs:RedSaturation>
+  <crs:Saturation>0</crs:Saturation>
+  <crs:SaturationAdjustmentAqua>0</crs:SaturationAdjustmentAqua>
+  <crs:SaturationAdjustmentBlue>0</crs:SaturationAdjustmentBlue>
+  <crs:SaturationAdjustmentGreen>0</crs:SaturationAdjustmentGreen>
+  <crs:SaturationAdjustmentMagenta>0</crs:SaturationAdjustmentMagenta>
+  <crs:SaturationAdjustmentOrange>0</crs:SaturationAdjustmentOrange>
+  <crs:SaturationAdjustmentPurple>0</crs:SaturationAdjustmentPurple>
+  <crs:SaturationAdjustmentRed>0</crs:SaturationAdjustmentRed>
+  <crs:SaturationAdjustmentYellow>0</crs:SaturationAdjustmentYellow>
+  <crs:ShadowTint>0</crs:ShadowTint>
+  <crs:Shadows2012>0</crs:Shadows2012>
+  <crs:SharpenDetail>25</crs:SharpenDetail>
+  <crs:SharpenEdgeMasking>0</crs:SharpenEdgeMasking>
+  <crs:SharpenRadius>+1</crs:SharpenRadius>
+  <crs:Sharpness>25</crs:Sharpness>
+  <crs:SplitToningBalance>0</crs:SplitToningBalance>
+  <crs:SplitToningHighlightHue>0</crs:SplitToningHighlightHue>
+  <crs:SplitToningHighlightSaturation>0</crs:SplitToningHighlightSaturation>
+  <crs:SplitToningShadowHue>0</crs:SplitToningShadowHue>
+  <crs:SplitToningShadowSaturation>0</crs:SplitToningShadowSaturation>
+  <crs:Temperature>6250</crs:Temperature>
+  <crs:Tint>+13</crs:Tint>
+  <crs:ToneCurve>
+   <rdf:Seq>
+    <rdf:li>0, 0</rdf:li>
+    <rdf:li>32, 22</rdf:li>
+    <rdf:li>64, 56</rdf:li>
+    <rdf:li>128, 128</rdf:li>
+    <rdf:li>192, 196</rdf:li>
+    <rdf:li>255, 255</rdf:li>
+   </rdf:Seq>
+  </crs:ToneCurve>
+  <crs:ToneCurveBlue>
+   <rdf:Seq>
+    <rdf:li>0, 0</rdf:li>
+    <rdf:li>255, 255</rdf:li>
+   </rdf:Seq>
+  </crs:ToneCurveBlue>
+  <crs:ToneCurveGreen>
+   <rdf:Seq>
+    <rdf:li>0, 0</rdf:li>
+    <rdf:li>255, 255</rdf:li>
+   </rdf:Seq>
+  </crs:ToneCurveGreen>
+  <crs:ToneCurveName>Medium Contrast</crs:ToneCurveName>
+  <crs:ToneCurveName2012>Linear</crs:ToneCurveName2012>
+  <crs:ToneCurvePV2012>
+   <rdf:Seq>
+    <rdf:li>0, 0</rdf:li>
+    <rdf:li>255, 255</rdf:li>
+   </rdf:Seq>
+  </crs:ToneCurvePV2012>
+  <crs:ToneCurvePV2012Blue>
+   <rdf:Seq>
+    <rdf:li>0, 0</rdf:li>
+    <rdf:li>255, 255</rdf:li>
+   </rdf:Seq>
+  </crs:ToneCurvePV2012Blue>
+  <crs:ToneCurvePV2012Green>
+   <rdf:Seq>
+    <rdf:li>0, 0</rdf:li>
+    <rdf:li>255, 255</rdf:li>
+   </rdf:Seq>
+  </crs:ToneCurvePV2012Green>
+  <crs:ToneCurvePV2012Red>
+   <rdf:Seq>
+    <rdf:li>0, 0</rdf:li>
+    <rdf:li>255, 255</rdf:li>
+   </rdf:Seq>
+  </crs:ToneCurvePV2012Red>
+  <crs:ToneCurveRed>
+   <rdf:Seq>
+    <rdf:li>0, 0</rdf:li>
+    <rdf:li>255, 255</rdf:li>
+   </rdf:Seq>
+  </crs:ToneCurveRed>
+  <crs:Version>8.7.1</crs:Version>
+  <crs:Vibrance>0</crs:Vibrance>
+  <crs:VignetteAmount>0</crs:VignetteAmount>
+  <crs:WhiteBalance>As Shot</crs:WhiteBalance>
+  <crs:Whites2012>0</crs:Whites2012>
+ </rdf:Description>
+</rdf:RDF>
 </x:xmpmeta>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<?xpacket end='w'?>
diff --git a/src/commonTest/resources/com/ashampoo/xmp/sample_52_formatted_canonical.xmp b/src/commonTest/resources/com/ashampoo/xmp/sample_52_formatted_canonical.xmp
index f655382..51143b3 100644
--- a/src/commonTest/resources/com/ashampoo/xmp/sample_52_formatted_canonical.xmp
+++ b/src/commonTest/resources/com/ashampoo/xmp/sample_52_formatted_canonical.xmp
@@ -2,276 +2,371 @@
 <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.1.3">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
     <rdf:Description rdf:about=""
+        xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
+        xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/"
+        xmlns:MicrosoftPhoto_1_="http://ns.microsoft.com/photo/1.0"
         xmlns:aux="http://ns.adobe.com/exif/1.0/aux/"
-        xmlns:darktable="http://darktable.sf.net/"
+        xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/"
         xmlns:dc="http://purl.org/dc/elements/1.1/"
         xmlns:exif="http://ns.adobe.com/exif/1.0/"
         xmlns:exifEX="http://cipa.jp/exif/1.0/"
+        xmlns:idimager="http://ns.idimager.com/idimager/1.0/"
         xmlns:lr="http://ns.adobe.com/lightroom/1.0/"
         xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
         xmlns:tiff="http://ns.adobe.com/tiff/1.0/"
         xmlns:xmp="http://ns.adobe.com/xap/1.0/"
-        xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">
-      <aux:Firmware>Firmware Version 1.1.2</aux:Firmware>
-      <aux:FlashCompensation>0/1</aux:FlashCompensation>
-      <aux:Lens>Canon EF-S 55-250mm f/4-5.6 IS STM</aux:Lens>
-      <aux:LensID>4148</aux:LensID>
-      <aux:LensInfo>55/1 250/1 0/0 0/0</aux:LensInfo>
-      <darktable:auto_presets_applied>1</darktable:auto_presets_applied>
-      <darktable:history>
-        <rdf:Seq>
-          <rdf:li>
-            <rdf:Description>
-              <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-              <darktable:blendop_version>8</darktable:blendop_version>
-              <darktable:enabled>1</darktable:enabled>
-              <darktable:modversion>1</darktable:modversion>
-              <darktable:multi_name/>
-              <darktable:multi_priority>0</darktable:multi_priority>
-              <darktable:operation>sharpen</darktable:operation>
-              <darktable:params>000000400000003f0000003f</darktable:params>
-            </rdf:Description>
-          </rdf:li>
-          <rdf:li>
-            <rdf:Description>
-              <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-              <darktable:blendop_version>8</darktable:blendop_version>
-              <darktable:enabled>1</darktable:enabled>
-              <darktable:modversion>2</darktable:modversion>
-              <darktable:multi_name/>
-              <darktable:multi_priority>0</darktable:multi_priority>
-              <darktable:operation>flip</darktable:operation>
-              <darktable:params>ffffffff</darktable:params>
-            </rdf:Description>
-          </rdf:li>
-          <rdf:li>
-            <rdf:Description>
-              <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-              <darktable:blendop_version>8</darktable:blendop_version>
-              <darktable:enabled>1</darktable:enabled>
-              <darktable:modversion>5</darktable:modversion>
-              <darktable:multi_name/>
-              <darktable:multi_priority>0</darktable:multi_priority>
-              <darktable:operation>basecurve</darktable:operation>
-              <darktable:params>gz09eJxjYIAAM6vnNnqyn22E9n235b6aa3cy6rVdRaK9/Y970fYf95bbMzA0QPEoGEqADYnNhCELiVMAudcSGA==</darktable:params>
-            </rdf:Description>
-          </rdf:li>
-          <rdf:li>
-            <rdf:Description>
-              <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-              <darktable:blendop_version>8</darktable:blendop_version>
-              <darktable:enabled>1</darktable:enabled>
-              <darktable:modversion>5</darktable:modversion>
-              <darktable:multi_name/>
-              <darktable:multi_priority>0</darktable:multi_priority>
-              <darktable:operation>clipping</darktable:operation>
-              <darktable:params>00000000e040f23c4ee4053efce6413f80c75b3f0000000000000000cdcc4c3ecdcc4c3ecdcc4c3fcdcc4c3ecdcc4c3fcdcc4c3fcdcc4c3ecdcc4c3f000000000000000000000000010000000000000001000000</darktable:params>
-            </rdf:Description>
-          </rdf:li>
-          <rdf:li>
-            <rdf:Description>
-              <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-              <darktable:blendop_version>8</darktable:blendop_version>
-              <darktable:enabled>1</darktable:enabled>
-              <darktable:modversion>5</darktable:modversion>
-              <darktable:multi_name/>
-              <darktable:multi_priority>0</darktable:multi_priority>
-              <darktable:operation>clipping</darktable:operation>
-              <darktable:params>00000000501a1c3d0c5cb53d9a16443feef9503f0000000000000000cdcc4c3ecdcc4c3ecdcc4c3fcdcc4c3ecdcc4c3fcdcc4c3fcdcc4c3ecdcc4c3f000000000000000000000000010000000000000001000000</darktable:params>
-            </rdf:Description>
-          </rdf:li>
-          <rdf:li>
-            <rdf:Description>
-              <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-              <darktable:blendop_version>8</darktable:blendop_version>
-              <darktable:enabled>1</darktable:enabled>
-              <darktable:modversion>1</darktable:modversion>
-              <darktable:multi_name/>
-              <darktable:multi_priority>0</darktable:multi_priority>
-              <darktable:operation>colisa</darktable:operation>
-              <darktable:params>d0ccccbdd0cccc3dd0cc4cbd</darktable:params>
-            </rdf:Description>
-          </rdf:li>
-          <rdf:li>
-            <rdf:Description>
-              <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-              <darktable:blendop_version>8</darktable:blendop_version>
-              <darktable:enabled>1</darktable:enabled>
-              <darktable:modversion>3</darktable:modversion>
-              <darktable:multi_name/>
-              <darktable:multi_priority>0</darktable:multi_priority>
-              <darktable:operation>bilat</darktable:operation>
-              <darktable:params>01000000cdcccc3ecdcc8c3f0000803ecdcc4c3e</darktable:params>
-            </rdf:Description>
-          </rdf:li>
-          <rdf:li>
-            <rdf:Description>
-              <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-              <darktable:blendop_version>8</darktable:blendop_version>
-              <darktable:enabled>1</darktable:enabled>
-              <darktable:modversion>1</darktable:modversion>
-              <darktable:multi_name/>
-              <darktable:multi_priority>0</darktable:multi_priority>
-              <darktable:operation>sharpen</darktable:operation>
-              <darktable:params>000000400000803f0000003f</darktable:params>
-            </rdf:Description>
-          </rdf:li>
-          <rdf:li>
-            <rdf:Description>
-              <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-              <darktable:blendop_version>8</darktable:blendop_version>
-              <darktable:enabled>1</darktable:enabled>
-              <darktable:modversion>3</darktable:modversion>
-              <darktable:multi_name/>
-              <darktable:multi_priority>0</darktable:multi_priority>
-              <darktable:operation>bilat</darktable:operation>
-              <darktable:params>01000000cdcccc3ecdcc8c3f9a99993ecdcc4c3e</darktable:params>
-            </rdf:Description>
-          </rdf:li>
-          <rdf:li>
-            <rdf:Description>
-              <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-              <darktable:blendop_version>8</darktable:blendop_version>
-              <darktable:enabled>1</darktable:enabled>
-              <darktable:modversion>2</darktable:modversion>
-              <darktable:multi_name/>
-              <darktable:multi_priority>0</darktable:multi_priority>
-              <darktable:operation>levels</darktable:operation>
-              <darktable:params>0000000000000000000048420000c842d9899d3dc332d53e8bac483f</darktable:params>
-            </rdf:Description>
-          </rdf:li>
-          <rdf:li>
-            <rdf:Description>
-              <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-              <darktable:blendop_version>8</darktable:blendop_version>
-              <darktable:enabled>1</darktable:enabled>
-              <darktable:modversion>3</darktable:modversion>
-              <darktable:multi_name/>
-              <darktable:multi_priority>0</darktable:multi_priority>
-              <darktable:operation>demosaic</darktable:operation>
-              <darktable:params>0000000000000000000000000100000000000000</darktable:params>
-            </rdf:Description>
-          </rdf:li>
+        xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
+        xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#"
+        xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#">
+      <Iptc4xmpCore:CountryCode>CZE</Iptc4xmpCore:CountryCode>
+      <Iptc4xmpCore:Location>23614 </Iptc4xmpCore:Location>
+      <Iptc4xmpExt:LocationCreated>
+        <rdf:Bag>
           <rdf:li>
             <rdf:Description>
-              <darktable:blendop_params>gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA==</darktable:blendop_params>
-              <darktable:blendop_version>8</darktable:blendop_version>
-              <darktable:enabled>1</darktable:enabled>
-              <darktable:modversion>1</darktable:modversion>
-              <darktable:multi_name/>
-              <darktable:multi_priority>0</darktable:multi_priority>
-              <darktable:operation>cacorrect</darktable:operation>
-              <darktable:params>32000000</darktable:params>
+              <Iptc4xmpExt:City>Kublov</Iptc4xmpExt:City>
+              <Iptc4xmpExt:CountryName>Czechia</Iptc4xmpExt:CountryName>
+              <Iptc4xmpExt:ProvinceState>Central Bohemian Region</Iptc4xmpExt:ProvinceState>
             </rdf:Description>
           </rdf:li>
+        </rdf:Bag>
+      </Iptc4xmpExt:LocationCreated>
+      <MicrosoftPhoto_1_:Rating>99</MicrosoftPhoto_1_:Rating>
+      <aux:ApproximateFocusDistance>382/100</aux:ApproximateFocusDistance>
+      <aux:Firmware>2.0.0</aux:Firmware>
+      <aux:FlashCompensation>0/1</aux:FlashCompensation>
+      <aux:ImageNumber>0</aux:ImageNumber>
+      <aux:Lens>EF70-200mm f/2.8L USM</aux:Lens>
+      <aux:LensID>165</aux:LensID>
+      <aux:LensInfo>70/1 200/1 0/0 0/0</aux:LensInfo>
+      <aux:SerialNumber>2981205828</aux:SerialNumber>
+      <crs:AlreadyApplied>True</crs:AlreadyApplied>
+      <crs:AutoLateralCA>0</crs:AutoLateralCA>
+      <crs:AutoWhiteVersion>134348800</crs:AutoWhiteVersion>
+      <crs:Blacks2012>0</crs:Blacks2012>
+      <crs:BlueHue>0</crs:BlueHue>
+      <crs:BlueSaturation>0</crs:BlueSaturation>
+      <crs:CameraProfile>Camera Standard</crs:CameraProfile>
+      <crs:CameraProfileDigest>18F667CAF0021C83697E05BE19459589</crs:CameraProfileDigest>
+      <crs:Clarity2012>0</crs:Clarity2012>
+      <crs:ColorNoiseReduction>25</crs:ColorNoiseReduction>
+      <crs:ColorNoiseReductionDetail>50</crs:ColorNoiseReductionDetail>
+      <crs:ColorNoiseReductionSmoothness>50</crs:ColorNoiseReductionSmoothness>
+      <crs:Contrast2012>0</crs:Contrast2012>
+      <crs:ConvertToGrayscale>False</crs:ConvertToGrayscale>
+      <crs:CropAngle>0</crs:CropAngle>
+      <crs:CropBottom>1</crs:CropBottom>
+      <crs:CropConstrainToWarp>1</crs:CropConstrainToWarp>
+      <crs:CropLeft>0.000687</crs:CropLeft>
+      <crs:CropRight>1</crs:CropRight>
+      <crs:CropTop>0.038144</crs:CropTop>
+      <crs:DefringeGreenAmount>0</crs:DefringeGreenAmount>
+      <crs:DefringeGreenHueHi>60</crs:DefringeGreenHueHi>
+      <crs:DefringeGreenHueLo>40</crs:DefringeGreenHueLo>
+      <crs:DefringePurpleAmount>0</crs:DefringePurpleAmount>
+      <crs:DefringePurpleHueHi>70</crs:DefringePurpleHueHi>
+      <crs:DefringePurpleHueLo>30</crs:DefringePurpleHueLo>
+      <crs:Exposure2012>0.00</crs:Exposure2012>
+      <crs:GrainAmount>0</crs:GrainAmount>
+      <crs:GreenHue>0</crs:GreenHue>
+      <crs:GreenSaturation>0</crs:GreenSaturation>
+      <crs:HasCrop>True</crs:HasCrop>
+      <crs:HasSettings>True</crs:HasSettings>
+      <crs:Highlights2012>0</crs:Highlights2012>
+      <crs:HueAdjustmentAqua>0</crs:HueAdjustmentAqua>
+      <crs:HueAdjustmentBlue>0</crs:HueAdjustmentBlue>
+      <crs:HueAdjustmentGreen>0</crs:HueAdjustmentGreen>
+      <crs:HueAdjustmentMagenta>0</crs:HueAdjustmentMagenta>
+      <crs:HueAdjustmentOrange>0</crs:HueAdjustmentOrange>
+      <crs:HueAdjustmentPurple>0</crs:HueAdjustmentPurple>
+      <crs:HueAdjustmentRed>0</crs:HueAdjustmentRed>
+      <crs:HueAdjustmentYellow>0</crs:HueAdjustmentYellow>
+      <crs:LensManualDistortionAmount>0</crs:LensManualDistortionAmount>
+      <crs:LensProfileEnable>0</crs:LensProfileEnable>
+      <crs:LensProfileSetup>LensDefaults</crs:LensProfileSetup>
+      <crs:LuminanceAdjustmentAqua>0</crs:LuminanceAdjustmentAqua>
+      <crs:LuminanceAdjustmentBlue>0</crs:LuminanceAdjustmentBlue>
+      <crs:LuminanceAdjustmentGreen>0</crs:LuminanceAdjustmentGreen>
+      <crs:LuminanceAdjustmentMagenta>0</crs:LuminanceAdjustmentMagenta>
+      <crs:LuminanceAdjustmentOrange>0</crs:LuminanceAdjustmentOrange>
+      <crs:LuminanceAdjustmentPurple>0</crs:LuminanceAdjustmentPurple>
+      <crs:LuminanceAdjustmentRed>0</crs:LuminanceAdjustmentRed>
+      <crs:LuminanceAdjustmentYellow>0</crs:LuminanceAdjustmentYellow>
+      <crs:LuminanceSmoothing>0</crs:LuminanceSmoothing>
+      <crs:ParametricDarks>0</crs:ParametricDarks>
+      <crs:ParametricHighlightSplit>75</crs:ParametricHighlightSplit>
+      <crs:ParametricHighlights>0</crs:ParametricHighlights>
+      <crs:ParametricLights>0</crs:ParametricLights>
+      <crs:ParametricMidtoneSplit>50</crs:ParametricMidtoneSplit>
+      <crs:ParametricShadowSplit>25</crs:ParametricShadowSplit>
+      <crs:ParametricShadows>0</crs:ParametricShadows>
+      <crs:PerspectiveAspect>0</crs:PerspectiveAspect>
+      <crs:PerspectiveHorizontal>0</crs:PerspectiveHorizontal>
+      <crs:PerspectiveRotate>0.0</crs:PerspectiveRotate>
+      <crs:PerspectiveScale>100</crs:PerspectiveScale>
+      <crs:PerspectiveUpright>0</crs:PerspectiveUpright>
+      <crs:PerspectiveVertical>0</crs:PerspectiveVertical>
+      <crs:PostCropVignetteAmount>0</crs:PostCropVignetteAmount>
+      <crs:ProcessVersion>6.7</crs:ProcessVersion>
+      <crs:RawFileName>_MG_1573.CR2</crs:RawFileName>
+      <crs:RedHue>0</crs:RedHue>
+      <crs:RedSaturation>0</crs:RedSaturation>
+      <crs:Saturation>0</crs:Saturation>
+      <crs:SaturationAdjustmentAqua>0</crs:SaturationAdjustmentAqua>
+      <crs:SaturationAdjustmentBlue>0</crs:SaturationAdjustmentBlue>
+      <crs:SaturationAdjustmentGreen>0</crs:SaturationAdjustmentGreen>
+      <crs:SaturationAdjustmentMagenta>0</crs:SaturationAdjustmentMagenta>
+      <crs:SaturationAdjustmentOrange>0</crs:SaturationAdjustmentOrange>
+      <crs:SaturationAdjustmentPurple>0</crs:SaturationAdjustmentPurple>
+      <crs:SaturationAdjustmentRed>0</crs:SaturationAdjustmentRed>
+      <crs:SaturationAdjustmentYellow>0</crs:SaturationAdjustmentYellow>
+      <crs:ShadowTint>0</crs:ShadowTint>
+      <crs:Shadows2012>0</crs:Shadows2012>
+      <crs:SharpenDetail>25</crs:SharpenDetail>
+      <crs:SharpenEdgeMasking>0</crs:SharpenEdgeMasking>
+      <crs:SharpenRadius>+1</crs:SharpenRadius>
+      <crs:Sharpness>25</crs:Sharpness>
+      <crs:SplitToningBalance>0</crs:SplitToningBalance>
+      <crs:SplitToningHighlightHue>0</crs:SplitToningHighlightHue>
+      <crs:SplitToningHighlightSaturation>0</crs:SplitToningHighlightSaturation>
+      <crs:SplitToningShadowHue>0</crs:SplitToningShadowHue>
+      <crs:SplitToningShadowSaturation>0</crs:SplitToningShadowSaturation>
+      <crs:Temperature>6250</crs:Temperature>
+      <crs:Tint>+13</crs:Tint>
+      <crs:ToneCurve>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>32, 22</rdf:li>
+          <rdf:li>64, 56</rdf:li>
+          <rdf:li>128, 128</rdf:li>
+          <rdf:li>192, 196</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurve>
+      <crs:ToneCurveBlue>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurveBlue>
+      <crs:ToneCurveGreen>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurveGreen>
+      <crs:ToneCurveName>Medium Contrast</crs:ToneCurveName>
+      <crs:ToneCurveName2012>Linear</crs:ToneCurveName2012>
+      <crs:ToneCurvePV2012>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurvePV2012>
+      <crs:ToneCurvePV2012Blue>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
         </rdf:Seq>
-      </darktable:history>
-      <darktable:history_end>12</darktable:history_end>
-      <darktable:raw_params>0</darktable:raw_params>
-      <darktable:xmp_version>2</darktable:xmp_version>
+      </crs:ToneCurvePV2012Blue>
+      <crs:ToneCurvePV2012Green>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurvePV2012Green>
+      <crs:ToneCurvePV2012Red>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurvePV2012Red>
+      <crs:ToneCurveRed>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurveRed>
+      <crs:Version>8.7.1</crs:Version>
+      <crs:Vibrance>0</crs:Vibrance>
+      <crs:VignetteAmount>0</crs:VignetteAmount>
+      <crs:WhiteBalance>As Shot</crs:WhiteBalance>
+      <crs:Whites2012>0</crs:Whites2012>
       <dc:creator>
         <rdf:Seq>
-          <rdf:li>dxfoto.ru</rdf:li>
+          <rdf:li>Eva Machackova</rdf:li>
         </rdf:Seq>
       </dc:creator>
-      <dc:description>
-        <rdf:Alt>
-          <rdf:li xml:lang="x-default">honeybee perching on yellow flower</rdf:li>
-        </rdf:Alt>
-      </dc:description>
-      <dc:rights>
-        <rdf:Alt>
-          <rdf:li xml:lang="x-default">CC-BY 3.0</rdf:li>
-        </rdf:Alt>
-      </dc:rights>
+      <dc:format>image/jpeg</dc:format>
       <dc:subject>
         <rdf:Bag>
-          <rdf:li>dxfoto</rdf:li>
-          <rdf:li>published</rdf:li>
+          <rdf:li>Rys ostrovid</rdf:li>
+          <rdf:li>Křivoklátsko</rdf:li>
+          <rdf:li>Kublov</rdf:li>
+          <rdf:li>Europe</rdf:li>
+          <rdf:li>Czech</rdf:li>
         </rdf:Bag>
       </dc:subject>
-      <exif:ApertureValue>368640/65536</exif:ApertureValue>
-      <exif:ColorSpace>1</exif:ColorSpace>
-      <exif:ComponentsConfiguration>
-        <rdf:Seq>
-          <rdf:li>1</rdf:li>
-          <rdf:li>2</rdf:li>
-          <rdf:li>3</rdf:li>
-          <rdf:li>0</rdf:li>
-        </rdf:Seq>
-      </exif:ComponentsConfiguration>
+      <dc:title>
+        <rdf:Alt>
+          <rdf:li xml:lang="x-default">_MG_1573_1</rdf:li>
+        </rdf:Alt>
+      </dc:title>
+      <exif:ApertureValue>2970854/1000000</exif:ApertureValue>
+      <exif:ColorSpace>65535</exif:ColorSpace>
       <exif:CustomRendered>0</exif:CustomRendered>
-      <exif:ExifVersion>0230</exif:ExifVersion>
+      <exif:DateTimeOriginal>2015-01-18T10:45:53.240+01:00</exif:DateTimeOriginal>
       <exif:ExposureBiasValue>0/1</exif:ExposureBiasValue>
-      <exif:ExposureMode>1</exif:ExposureMode>
-      <exif:ExposureProgram>1</exif:ExposureProgram>
-      <exif:ExposureTime>1/400</exif:ExposureTime>
-      <exif:FNumber>71/10</exif:FNumber>
+      <exif:ExposureMode>0</exif:ExposureMode>
+      <exif:ExposureProgram>3</exif:ExposureProgram>
+      <exif:ExposureTime>1/800</exif:ExposureTime>
+      <exif:FNumber>28/10</exif:FNumber>
       <exif:Flash>
         <rdf:Description>
           <exif:Fired>False</exif:Fired>
-          <exif:Function>False</exif:Function>
+          <exif:Function>True</exif:Function>
           <exif:Mode>2</exif:Mode>
           <exif:RedEyeMode>False</exif:RedEyeMode>
           <exif:Return>0</exif:Return>
         </rdf:Description>
       </exif:Flash>
-      <exif:FlashPixVersion>0100</exif:FlashPixVersion>
-      <exif:FocalLength>250/1</exif:FocalLength>
+      <exif:FocalLength>200/1</exif:FocalLength>
       <exif:FocalPlaneResolutionUnit>2</exif:FocalPlaneResolutionUnit>
-      <exif:FocalPlaneXResolution>5472000/899</exif:FocalPlaneXResolution>
-      <exif:FocalPlaneYResolution>3648000/599</exif:FocalPlaneYResolution>
-      <exif:GPSLatitude>55,54.679N</exif:GPSLatitude>
-      <exif:GPSLatitudeRef>N</exif:GPSLatitudeRef>
-      <exif:GPSLongitude>36,57.8089E</exif:GPSLongitude>
-      <exif:GPSLongitudeRef>E</exif:GPSLongitudeRef>
-      <exif:GPSVersionID>2.2.0.0</exif:GPSVersionID>
+      <exif:FocalPlaneXResolution>5184000/907</exif:FocalPlaneXResolution>
+      <exif:FocalPlaneYResolution>3456000/595</exif:FocalPlaneYResolution>
+      <exif:GPSAltitude>44540597/100000</exif:GPSAltitude>
+      <exif:GPSAltitudeRef>0</exif:GPSAltitudeRef>
+      <exif:GPSLatitude>49,56.622156N</exif:GPSLatitude>
+      <exif:GPSLongitude>13,52.600764E</exif:GPSLongitude>
+      <exif:GPSMapDatum>WGS-84</exif:GPSMapDatum>
+      <exif:GPSTimeStamp>2015-01-18T09:45:53.240Z</exif:GPSTimeStamp>
+      <exif:GPSVersionID>2.0.0.0</exif:GPSVersionID>
       <exif:ISOSpeedRatings>
         <rdf:Seq>
-          <rdf:li>250</rdf:li>
+          <rdf:li>1600</rdf:li>
         </rdf:Seq>
       </exif:ISOSpeedRatings>
-      <exif:MaxApertureValue>208885/36926</exif:MaxApertureValue>
-      <exif:MeteringMode>5</exif:MeteringMode>
-      <exif:PixelXDimension>4000</exif:PixelXDimension>
-      <exif:PixelYDimension>2670</exif:PixelYDimension>
+      <exif:MaxApertureValue>3/1</exif:MaxApertureValue>
+      <exif:MeteringMode>2</exif:MeteringMode>
+      <exif:PixelXDimension>3364</exif:PixelXDimension>
+      <exif:PixelYDimension>2968</exif:PixelYDimension>
       <exif:SceneCaptureType>0</exif:SceneCaptureType>
-      <exif:ShutterSpeedValue>565248/65536</exif:ShutterSpeedValue>
-      <exif:SubsecTime>47</exif:SubsecTime>
-      <exif:SubsecTimeDigitized>47</exif:SubsecTimeDigitized>
-      <exif:SubsecTimeOriginal>47</exif:SubsecTimeOriginal>
-      <exif:WhiteBalance>0</exif:WhiteBalance>
-      <exifEX:BodySerialNumber>103025021031</exifEX:BodySerialNumber>
-      <exifEX:LensModel>EF-S55-250mm f/4-5.6 IS STM</exifEX:LensModel>
-      <exifEX:LensSerialNumber>0000800dcf</exifEX:LensSerialNumber>
+      <exif:ShutterSpeedValue>9643856/1000000</exif:ShutterSpeedValue>
+      <exif:WhiteBalance>1</exif:WhiteBalance>
+      <exifEX:BodySerialNumber>2981205828</exifEX:BodySerialNumber>
+      <exifEX:LensModel>EF70-200mm f/2.8L USM</exifEX:LensModel>
       <exifEX:LensSpecification>
-        <rdf:Seq>
-          <rdf:li>55/1</rdf:li>
-          <rdf:li>250/1</rdf:li>
-          <rdf:li>0/1</rdf:li>
-          <rdf:li>0/1</rdf:li>
-        </rdf:Seq>
+        <rdf:Bag>
+          <rdf:li>70/1</rdf:li>
+          <rdf:li>200/1</rdf:li>
+          <rdf:li>0</rdf:li>
+          <rdf:li>0</rdf:li>
+        </rdf:Bag>
       </exifEX:LensSpecification>
-      <exifEX:PhotographicSensitivity>250</exifEX:PhotographicSensitivity>
-      <exifEX:RecommendedExposureIndex>250</exifEX:RecommendedExposureIndex>
-      <exifEX:SensitivityType>2</exifEX:SensitivityType>
+      <idimager:xmp_initialized>1</idimager:xmp_initialized>
       <lr:hierarchicalSubject>
+        <rdf:Bag>
+          <rdf:li>Savci|Rys ostrovid</rdf:li>
+          <rdf:li>Places|Europe|Czech|Křivoklátsko</rdf:li>
+          <rdf:li>Places|Europe|Czech|Křivoklátsko|Kublov</rdf:li>
+          <rdf:li>Places|Europe</rdf:li>
+          <rdf:li>Places|Europe|Czech</rdf:li>
+        </rdf:Bag>
+      </lr:hierarchicalSubject>
+      <photoshop:City>Kublov</photoshop:City>
+      <photoshop:ColorMode>3</photoshop:ColorMode>
+      <photoshop:Country>Czechia</photoshop:Country>
+      <photoshop:DateCreated>2015-01-18T10:45:53.240+01:00</photoshop:DateCreated>
+      <photoshop:ICCProfile>sRGB IEC61966-2.1</photoshop:ICCProfile>
+      <photoshop:State>Central Bohemian Region</photoshop:State>
+      <tiff:BitsPerSample>
         <rdf:Seq>
-          <rdf:li>dxfoto|published</rdf:li>
+          <rdf:li>8</rdf:li>
         </rdf:Seq>
-      </lr:hierarchicalSubject>
-      <photoshop:DateCreated>2019-07-14T09:21:11.47</photoshop:DateCreated>
+      </tiff:BitsPerSample>
+      <tiff:Compression>6</tiff:Compression>
       <tiff:Make>Canon</tiff:Make>
-      <tiff:Model>Canon EOS 70D</tiff:Model>
+      <tiff:Model>Canon EOS 7D</tiff:Model>
       <tiff:Orientation>1</tiff:Orientation>
       <tiff:ResolutionUnit>2</tiff:ResolutionUnit>
-      <tiff:XResolution>300</tiff:XResolution>
-      <tiff:YResolution>300</tiff:YResolution>
-      <xmp:CreateDate>2019-07-14T09:21:11.47</xmp:CreateDate>
-      <xmp:CreatorTool>darktable 2.6.2</xmp:CreatorTool>
-      <xmp:ModifyDate>2019-07-15T20:09:19.47</xmp:ModifyDate>
-      <xmp:Rating>0</xmp:Rating>
-      <xmpMM:DerivedFrom>_MG_9604.CR2</xmpMM:DerivedFrom>
+      <tiff:XResolution>3000000/10000</tiff:XResolution>
+      <tiff:YResolution>3000000/10000</tiff:YResolution>
+      <xmp:CreateDate>2015-01-18T10:45:53+01:00</xmp:CreateDate>
+      <xmp:CreatorTool>Photo Supreme (3.0.3.2061)</xmp:CreatorTool>
+      <xmp:MetadataDate>2016-10-22T11:07:15.226+01:00</xmp:MetadataDate>
+      <xmp:ModifyDate>2015-01-24T18:40:12+01:00</xmp:ModifyDate>
+      <xmp:Rating>2</xmp:Rating>
+      <xmpMM:DerivedFrom>
+        <rdf:Description>
+          <stRef:documentID>xmp.did:eaa16c47-805c-0447-a2a7-89b902ffac12</stRef:documentID>
+          <stRef:instanceID>xmp.iid:bed40db5-cd53-8641-84ab-b36224e3aec0</stRef:instanceID>
+          <stRef:originalDocumentID>6AC5E3D6229714EAD2DD6804103177A0</stRef:originalDocumentID>
+        </rdf:Description>
+      </xmpMM:DerivedFrom>
+      <xmpMM:DocumentID>adobe:docid:photoshop:05d4c353-a3f0-11e4-9ecb-ca3a401e6bd9</xmpMM:DocumentID>
+      <xmpMM:History>
+        <rdf:Seq>
+          <rdf:li/>
+          <rdf:li/>
+          <rdf:li>
+            <rdf:Description>
+              <stEvt:action>derived</stEvt:action>
+              <stEvt:parameters>converted from image/x-canon-cr2 to image/tiff</stEvt:parameters>
+            </rdf:Description>
+          </rdf:li>
+          <rdf:li>
+            <rdf:Description>
+              <stEvt:action>saved</stEvt:action>
+              <stEvt:changed>/</stEvt:changed>
+              <stEvt:instanceID>xmp.iid:eaa16c47-805c-0447-a2a7-89b902ffac12</stEvt:instanceID>
+              <stEvt:softwareAgent>Adobe Photoshop Camera Raw 8.7.1 (Windows)</stEvt:softwareAgent>
+              <stEvt:when>2015-01-24T18:36:04+01:00</stEvt:when>
+            </rdf:Description>
+          </rdf:li>
+          <rdf:li>
+            <rdf:Description>
+              <stEvt:action>saved</stEvt:action>
+              <stEvt:changed>/</stEvt:changed>
+              <stEvt:instanceID>xmp.iid:bed40db5-cd53-8641-84ab-b36224e3aec0</stEvt:instanceID>
+              <stEvt:softwareAgent>Adobe Photoshop CC 2014 (Windows)</stEvt:softwareAgent>
+              <stEvt:when>2015-01-24T18:39:40+01:00</stEvt:when>
+            </rdf:Description>
+          </rdf:li>
+          <rdf:li>
+            <rdf:Description>
+              <stEvt:action>converted</stEvt:action>
+              <stEvt:parameters>from image/tiff to image/jpeg</stEvt:parameters>
+            </rdf:Description>
+          </rdf:li>
+          <rdf:li>
+            <rdf:Description>
+              <stEvt:action>derived</stEvt:action>
+              <stEvt:parameters>converted from image/tiff to image/jpeg</stEvt:parameters>
+            </rdf:Description>
+          </rdf:li>
+          <rdf:li>
+            <rdf:Description>
+              <stEvt:action>saved</stEvt:action>
+              <stEvt:changed>/</stEvt:changed>
+              <stEvt:instanceID>xmp.iid:8173f4be-25aa-3c4f-914c-e8b283a62d0d</stEvt:instanceID>
+              <stEvt:softwareAgent>Adobe Photoshop CC 2014 (Windows)</stEvt:softwareAgent>
+              <stEvt:when>2015-01-24T18:39:40+01:00</stEvt:when>
+            </rdf:Description>
+          </rdf:li>
+          <rdf:li>
+            <rdf:Description>
+              <stEvt:action>saved</stEvt:action>
+              <stEvt:changed>/</stEvt:changed>
+              <stEvt:instanceID>xmp.iid:45212f11-0c60-4b47-9de5-4977445eeea5</stEvt:instanceID>
+              <stEvt:softwareAgent>Adobe Photoshop CC 2014 (Windows)</stEvt:softwareAgent>
+              <stEvt:when>2015-01-24T18:40:12+01:00</stEvt:when>
+            </rdf:Description>
+          </rdf:li>
+        </rdf:Seq>
+      </xmpMM:History>
+      <xmpMM:InstanceID>xmp.iid:45212f11-0c60-4b47-9de5-4977445eeea5</xmpMM:InstanceID>
+      <xmpMM:OriginalDocumentID>6AC5E3D6229714EAD2DD6804103177A0</xmpMM:OriginalDocumentID>
+      <xmpMM:PreservedFileName>_MG_1573.CR2</xmpMM:PreservedFileName>
     </rdf:Description>
   </rdf:RDF>
 </x:xmpmeta>
diff --git a/src/commonTest/resources/com/ashampoo/xmp/sample_52_formatted_compact.xmp b/src/commonTest/resources/com/ashampoo/xmp/sample_52_formatted_compact.xmp
index 1b44f14..1393807 100644
--- a/src/commonTest/resources/com/ashampoo/xmp/sample_52_formatted_compact.xmp
+++ b/src/commonTest/resources/com/ashampoo/xmp/sample_52_formatted_compact.xmp
@@ -2,237 +2,341 @@
 <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.1.3">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
     <rdf:Description rdf:about=""
+        xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
+        xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/"
+        xmlns:MicrosoftPhoto_1_="http://ns.microsoft.com/photo/1.0"
         xmlns:aux="http://ns.adobe.com/exif/1.0/aux/"
-        xmlns:darktable="http://darktable.sf.net/"
+        xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/"
         xmlns:dc="http://purl.org/dc/elements/1.1/"
         xmlns:exif="http://ns.adobe.com/exif/1.0/"
         xmlns:exifEX="http://cipa.jp/exif/1.0/"
+        xmlns:idimager="http://ns.idimager.com/idimager/1.0/"
         xmlns:lr="http://ns.adobe.com/lightroom/1.0/"
         xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
         xmlns:tiff="http://ns.adobe.com/tiff/1.0/"
         xmlns:xmp="http://ns.adobe.com/xap/1.0/"
         xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
-      aux:Firmware="Firmware Version 1.1.2"
+        xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#"
+        xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#"
+      Iptc4xmpCore:CountryCode="CZE"
+      Iptc4xmpCore:Location="23614 "
+      MicrosoftPhoto_1_:Rating="99"
+      aux:ApproximateFocusDistance="382/100"
+      aux:Firmware="2.0.0"
       aux:FlashCompensation="0/1"
-      aux:Lens="Canon EF-S 55-250mm f/4-5.6 IS STM"
-      aux:LensID="4148"
-      aux:LensInfo="55/1 250/1 0/0 0/0"
-      darktable:auto_presets_applied="1"
-      darktable:history_end="12"
-      darktable:raw_params="0"
-      darktable:xmp_version="2"
-      exif:ApertureValue="368640/65536"
-      exif:ColorSpace="1"
+      aux:ImageNumber="0"
+      aux:Lens="EF70-200mm f/2.8L USM"
+      aux:LensID="165"
+      aux:LensInfo="70/1 200/1 0/0 0/0"
+      aux:SerialNumber="2981205828"
+      crs:AlreadyApplied="True"
+      crs:AutoLateralCA="0"
+      crs:AutoWhiteVersion="134348800"
+      crs:Blacks2012="0"
+      crs:BlueHue="0"
+      crs:BlueSaturation="0"
+      crs:CameraProfile="Camera Standard"
+      crs:CameraProfileDigest="18F667CAF0021C83697E05BE19459589"
+      crs:Clarity2012="0"
+      crs:ColorNoiseReduction="25"
+      crs:ColorNoiseReductionDetail="50"
+      crs:ColorNoiseReductionSmoothness="50"
+      crs:Contrast2012="0"
+      crs:ConvertToGrayscale="False"
+      crs:CropAngle="0"
+      crs:CropBottom="1"
+      crs:CropConstrainToWarp="1"
+      crs:CropLeft="0.000687"
+      crs:CropRight="1"
+      crs:CropTop="0.038144"
+      crs:DefringeGreenAmount="0"
+      crs:DefringeGreenHueHi="60"
+      crs:DefringeGreenHueLo="40"
+      crs:DefringePurpleAmount="0"
+      crs:DefringePurpleHueHi="70"
+      crs:DefringePurpleHueLo="30"
+      crs:Exposure2012="0.00"
+      crs:GrainAmount="0"
+      crs:GreenHue="0"
+      crs:GreenSaturation="0"
+      crs:HasCrop="True"
+      crs:HasSettings="True"
+      crs:Highlights2012="0"
+      crs:HueAdjustmentAqua="0"
+      crs:HueAdjustmentBlue="0"
+      crs:HueAdjustmentGreen="0"
+      crs:HueAdjustmentMagenta="0"
+      crs:HueAdjustmentOrange="0"
+      crs:HueAdjustmentPurple="0"
+      crs:HueAdjustmentRed="0"
+      crs:HueAdjustmentYellow="0"
+      crs:LensManualDistortionAmount="0"
+      crs:LensProfileEnable="0"
+      crs:LensProfileSetup="LensDefaults"
+      crs:LuminanceAdjustmentAqua="0"
+      crs:LuminanceAdjustmentBlue="0"
+      crs:LuminanceAdjustmentGreen="0"
+      crs:LuminanceAdjustmentMagenta="0"
+      crs:LuminanceAdjustmentOrange="0"
+      crs:LuminanceAdjustmentPurple="0"
+      crs:LuminanceAdjustmentRed="0"
+      crs:LuminanceAdjustmentYellow="0"
+      crs:LuminanceSmoothing="0"
+      crs:ParametricDarks="0"
+      crs:ParametricHighlightSplit="75"
+      crs:ParametricHighlights="0"
+      crs:ParametricLights="0"
+      crs:ParametricMidtoneSplit="50"
+      crs:ParametricShadowSplit="25"
+      crs:ParametricShadows="0"
+      crs:PerspectiveAspect="0"
+      crs:PerspectiveHorizontal="0"
+      crs:PerspectiveRotate="0.0"
+      crs:PerspectiveScale="100"
+      crs:PerspectiveUpright="0"
+      crs:PerspectiveVertical="0"
+      crs:PostCropVignetteAmount="0"
+      crs:ProcessVersion="6.7"
+      crs:RawFileName="_MG_1573.CR2"
+      crs:RedHue="0"
+      crs:RedSaturation="0"
+      crs:Saturation="0"
+      crs:SaturationAdjustmentAqua="0"
+      crs:SaturationAdjustmentBlue="0"
+      crs:SaturationAdjustmentGreen="0"
+      crs:SaturationAdjustmentMagenta="0"
+      crs:SaturationAdjustmentOrange="0"
+      crs:SaturationAdjustmentPurple="0"
+      crs:SaturationAdjustmentRed="0"
+      crs:SaturationAdjustmentYellow="0"
+      crs:ShadowTint="0"
+      crs:Shadows2012="0"
+      crs:SharpenDetail="25"
+      crs:SharpenEdgeMasking="0"
+      crs:SharpenRadius="+1"
+      crs:Sharpness="25"
+      crs:SplitToningBalance="0"
+      crs:SplitToningHighlightHue="0"
+      crs:SplitToningHighlightSaturation="0"
+      crs:SplitToningShadowHue="0"
+      crs:SplitToningShadowSaturation="0"
+      crs:Temperature="6250"
+      crs:Tint="+13"
+      crs:ToneCurveName="Medium Contrast"
+      crs:ToneCurveName2012="Linear"
+      crs:Version="8.7.1"
+      crs:Vibrance="0"
+      crs:VignetteAmount="0"
+      crs:WhiteBalance="As Shot"
+      crs:Whites2012="0"
+      dc:format="image/jpeg"
+      exif:ApertureValue="2970854/1000000"
+      exif:ColorSpace="65535"
       exif:CustomRendered="0"
-      exif:ExifVersion="0230"
+      exif:DateTimeOriginal="2015-01-18T10:45:53.240+01:00"
       exif:ExposureBiasValue="0/1"
-      exif:ExposureMode="1"
-      exif:ExposureProgram="1"
-      exif:ExposureTime="1/400"
-      exif:FNumber="71/10"
-      exif:FlashPixVersion="0100"
-      exif:FocalLength="250/1"
+      exif:ExposureMode="0"
+      exif:ExposureProgram="3"
+      exif:ExposureTime="1/800"
+      exif:FNumber="28/10"
+      exif:FocalLength="200/1"
       exif:FocalPlaneResolutionUnit="2"
-      exif:FocalPlaneXResolution="5472000/899"
-      exif:FocalPlaneYResolution="3648000/599"
-      exif:GPSLatitude="55,54.679N"
-      exif:GPSLatitudeRef="N"
-      exif:GPSLongitude="36,57.8089E"
-      exif:GPSLongitudeRef="E"
-      exif:GPSVersionID="2.2.0.0"
-      exif:MaxApertureValue="208885/36926"
-      exif:MeteringMode="5"
-      exif:PixelXDimension="4000"
-      exif:PixelYDimension="2670"
+      exif:FocalPlaneXResolution="5184000/907"
+      exif:FocalPlaneYResolution="3456000/595"
+      exif:GPSAltitude="44540597/100000"
+      exif:GPSAltitudeRef="0"
+      exif:GPSLatitude="49,56.622156N"
+      exif:GPSLongitude="13,52.600764E"
+      exif:GPSMapDatum="WGS-84"
+      exif:GPSTimeStamp="2015-01-18T09:45:53.240Z"
+      exif:GPSVersionID="2.0.0.0"
+      exif:MaxApertureValue="3/1"
+      exif:MeteringMode="2"
+      exif:PixelXDimension="3364"
+      exif:PixelYDimension="2968"
       exif:SceneCaptureType="0"
-      exif:ShutterSpeedValue="565248/65536"
-      exif:SubsecTime="47"
-      exif:SubsecTimeDigitized="47"
-      exif:SubsecTimeOriginal="47"
-      exif:WhiteBalance="0"
-      exifEX:BodySerialNumber="103025021031"
-      exifEX:LensModel="EF-S55-250mm f/4-5.6 IS STM"
-      exifEX:LensSerialNumber="0000800dcf"
-      exifEX:PhotographicSensitivity="250"
-      exifEX:RecommendedExposureIndex="250"
-      exifEX:SensitivityType="2"
-      photoshop:DateCreated="2019-07-14T09:21:11.47"
+      exif:ShutterSpeedValue="9643856/1000000"
+      exif:WhiteBalance="1"
+      exifEX:BodySerialNumber="2981205828"
+      exifEX:LensModel="EF70-200mm f/2.8L USM"
+      idimager:xmp_initialized="1"
+      photoshop:City="Kublov"
+      photoshop:ColorMode="3"
+      photoshop:Country="Czechia"
+      photoshop:DateCreated="2015-01-18T10:45:53.240+01:00"
+      photoshop:ICCProfile="sRGB IEC61966-2.1"
+      photoshop:State="Central Bohemian Region"
+      tiff:Compression="6"
       tiff:Make="Canon"
-      tiff:Model="Canon EOS 70D"
+      tiff:Model="Canon EOS 7D"
       tiff:Orientation="1"
       tiff:ResolutionUnit="2"
-      tiff:XResolution="300"
-      tiff:YResolution="300"
-      xmp:CreateDate="2019-07-14T09:21:11.47"
-      xmp:CreatorTool="darktable 2.6.2"
-      xmp:ModifyDate="2019-07-15T20:09:19.47"
-      xmp:Rating="0"
-      xmpMM:DerivedFrom="_MG_9604.CR2">
-      <darktable:history>
-        <rdf:Seq>
-          <rdf:li
-            darktable:blendop_params="gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA=="
-            darktable:blendop_version="8"
-            darktable:enabled="1"
-            darktable:modversion="1"
-            darktable:multi_name=""
-            darktable:multi_priority="0"
-            darktable:operation="sharpen"
-            darktable:params="000000400000003f0000003f"/>
-          <rdf:li
-            darktable:blendop_params="gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA=="
-            darktable:blendop_version="8"
-            darktable:enabled="1"
-            darktable:modversion="2"
-            darktable:multi_name=""
-            darktable:multi_priority="0"
-            darktable:operation="flip"
-            darktable:params="ffffffff"/>
-          <rdf:li
-            darktable:blendop_params="gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA=="
-            darktable:blendop_version="8"
-            darktable:enabled="1"
-            darktable:modversion="5"
-            darktable:multi_name=""
-            darktable:multi_priority="0"
-            darktable:operation="basecurve"
-            darktable:params="gz09eJxjYIAAM6vnNnqyn22E9n235b6aa3cy6rVdRaK9/Y970fYf95bbMzA0QPEoGEqADYnNhCELiVMAudcSGA=="/>
-          <rdf:li
-            darktable:blendop_params="gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA=="
-            darktable:blendop_version="8"
-            darktable:enabled="1"
-            darktable:modversion="5"
-            darktable:multi_name=""
-            darktable:multi_priority="0"
-            darktable:operation="clipping"
-            darktable:params="00000000e040f23c4ee4053efce6413f80c75b3f0000000000000000cdcc4c3ecdcc4c3ecdcc4c3fcdcc4c3ecdcc4c3fcdcc4c3fcdcc4c3ecdcc4c3f000000000000000000000000010000000000000001000000"/>
-          <rdf:li
-            darktable:blendop_params="gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA=="
-            darktable:blendop_version="8"
-            darktable:enabled="1"
-            darktable:modversion="5"
-            darktable:multi_name=""
-            darktable:multi_priority="0"
-            darktable:operation="clipping"
-            darktable:params="00000000501a1c3d0c5cb53d9a16443feef9503f0000000000000000cdcc4c3ecdcc4c3ecdcc4c3fcdcc4c3ecdcc4c3fcdcc4c3fcdcc4c3ecdcc4c3f000000000000000000000000010000000000000001000000"/>
-          <rdf:li
-            darktable:blendop_params="gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA=="
-            darktable:blendop_version="8"
-            darktable:enabled="1"
-            darktable:modversion="1"
-            darktable:multi_name=""
-            darktable:multi_priority="0"
-            darktable:operation="colisa"
-            darktable:params="d0ccccbdd0cccc3dd0cc4cbd"/>
-          <rdf:li
-            darktable:blendop_params="gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA=="
-            darktable:blendop_version="8"
-            darktable:enabled="1"
-            darktable:modversion="3"
-            darktable:multi_name=""
-            darktable:multi_priority="0"
-            darktable:operation="bilat"
-            darktable:params="01000000cdcccc3ecdcc8c3f0000803ecdcc4c3e"/>
-          <rdf:li
-            darktable:blendop_params="gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA=="
-            darktable:blendop_version="8"
-            darktable:enabled="1"
-            darktable:modversion="1"
-            darktable:multi_name=""
-            darktable:multi_priority="0"
-            darktable:operation="sharpen"
-            darktable:params="000000400000803f0000003f"/>
-          <rdf:li
-            darktable:blendop_params="gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA=="
-            darktable:blendop_version="8"
-            darktable:enabled="1"
-            darktable:modversion="3"
-            darktable:multi_name=""
-            darktable:multi_priority="0"
-            darktable:operation="bilat"
-            darktable:params="01000000cdcccc3ecdcc8c3f9a99993ecdcc4c3e"/>
-          <rdf:li
-            darktable:blendop_params="gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA=="
-            darktable:blendop_version="8"
-            darktable:enabled="1"
-            darktable:modversion="2"
-            darktable:multi_name=""
-            darktable:multi_priority="0"
-            darktable:operation="levels"
-            darktable:params="0000000000000000000048420000c842d9899d3dc332d53e8bac483f"/>
-          <rdf:li
-            darktable:blendop_params="gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA=="
-            darktable:blendop_version="8"
-            darktable:enabled="1"
-            darktable:modversion="3"
-            darktable:multi_name=""
-            darktable:multi_priority="0"
-            darktable:operation="demosaic"
-            darktable:params="0000000000000000000000000100000000000000"/>
+      tiff:XResolution="3000000/10000"
+      tiff:YResolution="3000000/10000"
+      xmp:CreateDate="2015-01-18T10:45:53+01:00"
+      xmp:CreatorTool="Photo Supreme (3.0.3.2061)"
+      xmp:MetadataDate="2016-10-22T11:07:15.226+01:00"
+      xmp:ModifyDate="2015-01-24T18:40:12+01:00"
+      xmp:Rating="2"
+      xmpMM:DocumentID="adobe:docid:photoshop:05d4c353-a3f0-11e4-9ecb-ca3a401e6bd9"
+      xmpMM:InstanceID="xmp.iid:45212f11-0c60-4b47-9de5-4977445eeea5"
+      xmpMM:OriginalDocumentID="6AC5E3D6229714EAD2DD6804103177A0"
+      xmpMM:PreservedFileName="_MG_1573.CR2">
+      <Iptc4xmpExt:LocationCreated>
+        <rdf:Bag>
           <rdf:li
-            darktable:blendop_params="gz11eJxjYGBgkGAAgRNODGiAEV0AJ2iwh+CRxQcA5qIZBA=="
-            darktable:blendop_version="8"
-            darktable:enabled="1"
-            darktable:modversion="1"
-            darktable:multi_name=""
-            darktable:multi_priority="0"
-            darktable:operation="cacorrect"
-            darktable:params="32000000"/>
+            Iptc4xmpExt:City="Kublov"
+            Iptc4xmpExt:CountryName="Czechia"
+            Iptc4xmpExt:ProvinceState="Central Bohemian Region"/>
+        </rdf:Bag>
+      </Iptc4xmpExt:LocationCreated>
+      <crs:ToneCurve>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>32, 22</rdf:li>
+          <rdf:li>64, 56</rdf:li>
+          <rdf:li>128, 128</rdf:li>
+          <rdf:li>192, 196</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurve>
+      <crs:ToneCurveBlue>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurveBlue>
+      <crs:ToneCurveGreen>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurveGreen>
+      <crs:ToneCurvePV2012>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurvePV2012>
+      <crs:ToneCurvePV2012Blue>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurvePV2012Blue>
+      <crs:ToneCurvePV2012Green>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurvePV2012Green>
+      <crs:ToneCurvePV2012Red>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
+        </rdf:Seq>
+      </crs:ToneCurvePV2012Red>
+      <crs:ToneCurveRed>
+        <rdf:Seq>
+          <rdf:li>0, 0</rdf:li>
+          <rdf:li>255, 255</rdf:li>
         </rdf:Seq>
-      </darktable:history>
+      </crs:ToneCurveRed>
       <dc:creator>
         <rdf:Seq>
-          <rdf:li>dxfoto.ru</rdf:li>
+          <rdf:li>Eva Machackova</rdf:li>
         </rdf:Seq>
       </dc:creator>
-      <dc:description>
-        <rdf:Alt>
-          <rdf:li xml:lang="x-default">honeybee perching on yellow flower</rdf:li>
-        </rdf:Alt>
-      </dc:description>
-      <dc:rights>
-        <rdf:Alt>
-          <rdf:li xml:lang="x-default">CC-BY 3.0</rdf:li>
-        </rdf:Alt>
-      </dc:rights>
       <dc:subject>
         <rdf:Bag>
-          <rdf:li>dxfoto</rdf:li>
-          <rdf:li>published</rdf:li>
+          <rdf:li>Rys ostrovid</rdf:li>
+          <rdf:li>Křivoklátsko</rdf:li>
+          <rdf:li>Kublov</rdf:li>
+          <rdf:li>Europe</rdf:li>
+          <rdf:li>Czech</rdf:li>
         </rdf:Bag>
       </dc:subject>
-      <exif:ComponentsConfiguration>
-        <rdf:Seq>
-          <rdf:li>1</rdf:li>
-          <rdf:li>2</rdf:li>
-          <rdf:li>3</rdf:li>
-          <rdf:li>0</rdf:li>
-        </rdf:Seq>
-      </exif:ComponentsConfiguration>
+      <dc:title>
+        <rdf:Alt>
+          <rdf:li xml:lang="x-default">_MG_1573_1</rdf:li>
+        </rdf:Alt>
+      </dc:title>
       <exif:Flash
         exif:Fired="False"
-        exif:Function="False"
+        exif:Function="True"
         exif:Mode="2"
         exif:RedEyeMode="False"
         exif:Return="0"/>
       <exif:ISOSpeedRatings>
         <rdf:Seq>
-          <rdf:li>250</rdf:li>
+          <rdf:li>1600</rdf:li>
         </rdf:Seq>
       </exif:ISOSpeedRatings>
       <exifEX:LensSpecification>
-        <rdf:Seq>
-          <rdf:li>55/1</rdf:li>
-          <rdf:li>250/1</rdf:li>
-          <rdf:li>0/1</rdf:li>
-          <rdf:li>0/1</rdf:li>
-        </rdf:Seq>
+        <rdf:Bag>
+          <rdf:li>70/1</rdf:li>
+          <rdf:li>200/1</rdf:li>
+          <rdf:li>0</rdf:li>
+          <rdf:li>0</rdf:li>
+        </rdf:Bag>
       </exifEX:LensSpecification>
       <lr:hierarchicalSubject>
+        <rdf:Bag>
+          <rdf:li>Savci|Rys ostrovid</rdf:li>
+          <rdf:li>Places|Europe|Czech|Křivoklátsko</rdf:li>
+          <rdf:li>Places|Europe|Czech|Křivoklátsko|Kublov</rdf:li>
+          <rdf:li>Places|Europe</rdf:li>
+          <rdf:li>Places|Europe|Czech</rdf:li>
+        </rdf:Bag>
+      </lr:hierarchicalSubject>
+      <tiff:BitsPerSample>
         <rdf:Seq>
-          <rdf:li>dxfoto|published</rdf:li>
+          <rdf:li>8</rdf:li>
         </rdf:Seq>
-      </lr:hierarchicalSubject>
+      </tiff:BitsPerSample>
+      <xmpMM:DerivedFrom
+        stRef:documentID="xmp.did:eaa16c47-805c-0447-a2a7-89b902ffac12"
+        stRef:instanceID="xmp.iid:bed40db5-cd53-8641-84ab-b36224e3aec0"
+        stRef:originalDocumentID="6AC5E3D6229714EAD2DD6804103177A0"/>
+      <xmpMM:History>
+        <rdf:Seq>
+          <rdf:li/>
+          <rdf:li/>
+          <rdf:li
+            stEvt:action="derived"
+            stEvt:parameters="converted from image/x-canon-cr2 to image/tiff"/>
+          <rdf:li
+            stEvt:action="saved"
+            stEvt:changed="/"
+            stEvt:instanceID="xmp.iid:eaa16c47-805c-0447-a2a7-89b902ffac12"
+            stEvt:softwareAgent="Adobe Photoshop Camera Raw 8.7.1 (Windows)"
+            stEvt:when="2015-01-24T18:36:04+01:00"/>
+          <rdf:li
+            stEvt:action="saved"
+            stEvt:changed="/"
+            stEvt:instanceID="xmp.iid:bed40db5-cd53-8641-84ab-b36224e3aec0"
+            stEvt:softwareAgent="Adobe Photoshop CC 2014 (Windows)"
+            stEvt:when="2015-01-24T18:39:40+01:00"/>
+          <rdf:li
+            stEvt:action="converted"
+            stEvt:parameters="from image/tiff to image/jpeg"/>
+          <rdf:li
+            stEvt:action="derived"
+            stEvt:parameters="converted from image/tiff to image/jpeg"/>
+          <rdf:li
+            stEvt:action="saved"
+            stEvt:changed="/"
+            stEvt:instanceID="xmp.iid:8173f4be-25aa-3c4f-914c-e8b283a62d0d"
+            stEvt:softwareAgent="Adobe Photoshop CC 2014 (Windows)"
+            stEvt:when="2015-01-24T18:39:40+01:00"/>
+          <rdf:li
+            stEvt:action="saved"
+            stEvt:changed="/"
+            stEvt:instanceID="xmp.iid:45212f11-0c60-4b47-9de5-4977445eeea5"
+            stEvt:softwareAgent="Adobe Photoshop CC 2014 (Windows)"
+            stEvt:when="2015-01-24T18:40:12+01:00"/>
+        </rdf:Seq>
+      </xmpMM:History>
     </rdf:Description>
   </rdf:RDF>
 </x:xmpmeta>