# import xsd

> Import a data contract from an XML Schema (XSD) file.

# `datacontract import xsd`

```bash
datacontract import xsd [OPTIONS]
```

| Option | Default | Description |
|---|---|---|
| `--source` | — | Path to the XML Schema (XSD) file. |
| `--output` | — | File path where the Data Contract will be saved. If not provided, it will be printed to stdout. |
| `--json-schema` | — | The location (url or path) of the ODCS JSON Schema |
| `--owner` | — | The owner or team responsible for managing the data contract. |
| `--id` | — | The identifier for the data contract. |
| `--debug` / `--no-debug` | — | Enable debug logging |

```bash
datacontract import xsd --source schema.xsd --output datacontract.yaml
```

Guide: **[Import: XML Schema](../../imports/xsd.md)**.
