Custom Properties

Custom properties enable users to define custom metadata properties through a set of well-defined data types.

Custom properties are represented by <property> elements (§ stored in the Custom File Properties part with:

  • Source Relationship:

  • Content Type: application/vnd.openxmlformats-officedocument.custom-properties+xml

Custom property elements are non-repeatable and may be empty or omitted. If all custom property elements are omitted then the custom properties part may be excluded from a document.

The type and value of custom properties are specified by child XML elements in the File Properties Variant Types namespace (discussed in detail in §7.4). User defined properties are uniquely identified through the @name attribute of the <property> element. Custom properties can be associated with OLE document properties through the @fmtid and @pid attributes.

<property fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}" pid="2" 
  <vt:lpwstr>John Smith</vt:lpwstr>