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

# \<documentinfo\>

## Summary

Metadata at the [document](../../reference/glossary/documentinfo.md) level.

This element is a wrapper for information about the underlying document [URI](../../reference/glossary/uri.md), [reverse cross-references](../../reference/glossary/reverse_xref.md) and [document versions](../../reference/glossary/version.md).

For metadata at the fragment level see `<fragmentinfo>`.

## Usage context

| Element category | metadata |
| --- | --- |
| PSML level | metadata |
| Permitted content | `<uri> <publication> <compareto> <versions> <reversexrefs>` |
| Permitted parent | `<document>` |
| HTML equivalent | `<head>` |
| OpenXML equivalent |  |

## Attributes

This element does not have any attributes.

## Examples

A document without any reverse reference or version has the following document info:

```lang-xml

<documentinfo>
  <uri> ... </uri>
</documentinfo>
```

## Schema

### XML Schema

```lang-xml
<xs:element name="documentinfo">

  <xs:complexType>
    <xs:all>
      <xs:element ref="uri"/>
      <xs:element ref="publication"  minOccurs="0" />
      <xs:element ref="compareto"    minOccurs="0"/>
      <xs:element ref="versions"     minOccurs="0"/>
      <xs:element ref="reversexrefs" minOccurs="0"/>
    </xs:all>
  </xs:complexType>
</xs:element>
```

### Relax Schema

```lang-relax
element documentinfo {
   element uri,
   element publication?,
   element compareto?,
   element versions?,
   element reversexrefs?
}
```

## Compatibility

This element was introduced in the first draft of PSML and is well-supported from PageSeeder 5.1.

