# Missing child element(s)

Source: https://xmlvalid.com/errors/missing-child-elements

> A required child element is missing.

Example message: `Element 'order': Missing child element(s). Expected is ( qty ).`

## Why it happens

- An element with `minOccurs` 1 (the default) that is not there.
- The element is there but in another namespace, so it does not count.

## How to fix it

- Add the element the message names, in the position the schema's sequence gives it.

## Example that fails

```xml
<order currency="EUR">
  <id>A-1</id>
</order>
```

## Fixed

```xml
<order currency="EUR">
  <id>A-1</id>
  <qty>1</qty>
</order>
```
