# media\_xmp\_rows

Source: https://zotonic.com/docs/3201/media_xmp_rows

URI: https://zotonic.com/id/3201

Language: en



Flatten extracted XMP trees from `medium.xmp` into an ordered list of `{Path, Value}` tuples containing binaries. Paths retain element names, child positions and attributes, including language tags. Namespace declarations are omitted. Unsupported input returns an empty list; malformed nodes are skipped.

Use the filter to display the XMP metadata stored with a medium:

```django
{% for name, value in medium.xmp|media_xmp_rows %}
    <dt>{{ name|escape }}</dt>
    <dd>{{ value|escape|linebreaksbr }}</dd>
{% endfor %}
```

Both paths and values come from the uploaded file and must be escaped. The filter does not perform access checks; the calling page controls access to the medium and its metadata.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/3201?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/3201?language=en>)
