# Lint and validate *.inx files

For validation purposes of all inx files we can use the following step:

```bash
sudo apt-get update && apt-get install libxml2-utils # install require stuff  

cd ~/.config/inkscape/extensions/mightyscape-1.2/extensions/fablabchemnitz
./000_validate.sh # does not support linting for deeper folders (no recurse)

# or lint a single file in an extensions' dir:
cd <yourExtension>
xmllint --noout --relaxng ../inkscape.extension.rng *.inx
```

If there is an error message instead of the export/import dialog, check the file or console log from Inkscape:

```bash
#Windows
%AppData%\Roaming\inkscape\extension-errors.log

#Linux
~/.config(inkscape/extension-errors.log
```

Counting INX files and folders:

```bash
cd ~/.config/inkscape/extensions/mightyscape-1.2/extensions/fablabchemnitz
find ./ -type f -name "*.inx" | wc -l
ls -d */ | wc -l
```

<p class="callout info">This information was also contributed to [https://inkscape.gitlab.io/extensions/documentation/authors/inx-overview.html#relax-ng-xml-schema-and-inx-file-validation](https://inkscape.gitlab.io/extensions/documentation/authors/inx-overview.html#relax-ng-xml-schema-and-inx-file-validation)</p>