# How do I create a new CMDI metadata file using the Oxygen XML editor?

**URL:** <https://forum.clarin.eu/t/how-do-i-create-a-new-cmdi-metadata-file-using-the-oxygen-xml-editor/479>\
**Category:** Metadata\
**Tags:** metadata\
**Created:** [13 September 2024 08:59 UTC](https://forum.clarin.eu/t/how-do-i-create-a-new-cmdi-metadata-file-using-the-oxygen-xml-editor/479 "2024-09-13T08:59:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![twagoo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.clarin.eu/twagoo/32/11_2.png) [@twagoo](https://forum.clarin.eu/u/twagoo)\
**Post date:** [13 September 2024 08:59 UTC](https://forum.clarin.eu/t/how-do-i-create-a-new-cmdi-metadata-file-using-the-oxygen-xml-editor/479/1 "2024-09-13T08:59:48Z")

</div>

See also: [How do I create a new CMDI metadata file?](https://forum.clarin.eu/t/how-do-i-create-a-new-cmdi-metadata-file/725)

## Using Oxygen

In the [oXygen XML editor](https://www.oxygenxml.com/), an easy way to get started is using the “Generate sample XML files” feature:

- Choose “Generate sample XML files” in the “Tools” menu.
- Insert the URL of the schema of the desired profile (see “[How can I create an XSD (XML schema) from my CMDI profile?](https://www.clarin.eu/faq/how-can-i-create-xsd-xml-schema-my-cmdi-profile)”) into the URL field.
- Make sure to select **CMD** as the root element (possibly overriding Oxygen’s default suggestion). This should set the value of the “namespace” field to either `http://www.clarin.eu/cmd/` (CMDI 1.1) or `http://www.clarin.eu/cmd/1` (CMDI 1.2 or higher).
- Optionally set the desired default namespace (if you don’t know what this does, you can skip this step).
- Review the options in the “Options” pane, in particular the checkboxes that determine whether optional fields should be instantiated or not.
- Click “OK” to generate a sample CMDI document.
- Use this document as a template to create your CMDI records.
- Use the autocomplete and suggestion functionality of Oxygen’s Text or Grid mode to further edit your document(s).
- Make sure to validate your document regularly, in particular before publishing your metadata.
- The [official documentation](https://www.oxygenxml.com/documentation.html) provides more [information about editing XML documents using oXygen](https://www.oxygenxml.com/doc/versions/18.1/ug-editor/topics/editing-xml-documents.html).
