ImageGear v26.3 - Updated
Developer Guide / How to Work with ... / Common Operations / Manipulating Image Data / Metadata / General Metadata API / Access XMP Tags via General Metadata
In This Topic
    Access XMP Tags via General Metadata
    In This Topic

    Since the XMP standard identifies schema properties using string names rather than numbers, ImageGear also uses names to identify XMP properties. However, it uses numeric identifiers to differentiate between the kinds of entities, such as Description (schema), Array, Property, Qualifier, etc. All properties have ID = ImGearXMPTagIDs.Property, but differ by their names.

    See XMP Non-Image Data Structure section for description of XMP metadata structure in ImageGear.

    Example:

    Representation of XMP metadata using the General API: 

    • XMP

    • http://ns.adobe.com/xap/1.0/

      • About = "uuid:faf5bdd5-ba3d-11da-ad31-d33d75182f1b"
      • Namespace
        • Prefix = "xmp"
        • URI = "http://ns.adobe.com/xap/1.0/"
      • Namespace
        • Prefix = "xmpidq"
        • URI =  "http://ns.adobe.com/xmp/Identifier/qual/1.0/"
      • Properties
        • xap:Rating
          • Value = 4
        • xap:Identifier
          • Value = "1234.0345.34532.234231"
          • Qualifiers
            • xmpidq:Schema
              • Value = "Accusoft doc IDs"
    • http://purl.org/dc/elements/1.1/

      • Namespace
        • Prefix = "dc"
        • URI = http://purl.org/dc/elements/1.1/
      • Properties
        • dc:subject
          • Bag
            • Item
              • Value = "Test subject 1"
            • Item
              • Value = "Test subject 2"
        • dc:title
          • Alt
            • Item
              • Lang = "x-default"
              • Value = "XMP Support Specification"