---
title: "Element <metadata>"
source: https://dev.pageseeder.com/psml/elements/element-metadata.html
description: "PSML Element reference for <metadata>"
last_updated: 2026-08-07T17:09:54+10:00
tokens: ~673
---

# \<metadata\>

## Summary

The `<metadata>` element contains [metadata](../../reference/glossary/metadata.md) properties for the document.

> **Note:** - This element is only overwritten when a PSML document is uploaded if the **Overwrite metadata and document properties** checkbox is selected under **Upload options**. - Metadata for a non-PSML file can only be modified when the file itself is uploaded with the corresponding PSML metadata document.

## Usage context

| Element category | metadata |
| --- | --- |
| PSML level | portable |
| Permitted content | `<properties> <notes>` |
| Permitted parent | `<document> <compareto>` |
| HTML equivalent | no equivalent |
| OpenXML equivalent |  |

## Attributes

This element includes the following attributes:

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| checked | [xs:dateTime](../datatypes/xml_schema_datatypes.md) | no | The last date the URL metadata was checked (URLs only) |
| editid | [xs:long](../datatypes/xml_schema_datatypes.md) | no | The XLink ID for the latest edit |
| modified | [xs:dateTime](../datatypes/xml_schema_datatypes.md) | no | The last edit date |

### `@checked`

The last date the URL metadata properties were checked against the URL source (URLs only).  

*INFORMATIONAL - ignored by upload.*

*This attribute was introduced in PSML 1.3 in PageSeeder 5.99.*

### `@editid`

The ID of the latest edit. An XLink ID is unique within a PageSeeder instance. *INFORMATIONAL - ignored by upload.*

> **Note:** This attribute value is specific to a PageSeeder server as it refers to the XLink representing the last edit.

### `@modified`

The date this fragment was last modified. It corresponds to the date of the last modified XLink. *INFORMATIONAL - ignored by upload.*

## Examples

```lang-xml

<metadata>
  <properties>
    <property name="part-id" value="FY765A"/>
    <property name="part-category" value="Industrial"/>
  </properties>
</metadata>
```

## Schema

### XML Schema

```lang-xml

<xs:element name="metadata">
  <xs:complexType>
    <xs:all>
      <xs:element ref="properties" minOccurs="0" />
      <xs:element ref="notes" minOccurs="0" />
    </xs:all>
    <xs:attribute name="checked" type="xs:dateTime" />
    <xs:attribute  name="modified" type="xs:dateTime" />
    <xs:attribute  name="editid" type="xs:long" />
  </xs:complexType>
</xs:element>
```

### Relax schema

```lang-relax

element metadata {
   attribute checked { xs:dateTime },
   attribute modified { xs:dateTime },
   attribute editid { xs:long },
   element properties,
   element notes
}
```

## Compatibility

This element was introduced in PSML beta 10 and is supported from PageSeeder 5.9.

