XSD EDItEUR · 3.1 revision 3, code lists issue 75

ONIX for Books 3.1 short tags

ONIX 3.1 book metadata with short tag names (b001, x507 …).

About

Short tags carry the same data as reference names in smaller files; large feeds often use them.

Good to know

  • The schemas are kept exactly as EDItEUR publishes them. The example is the sample file that ships with the schema.

Files

3 files · 1.9 MB

The validator loads all of these with their folder structure, so includes and imports resolve as published.

Example document

Onix3sample_shorttags.xml · 13.5 KB · valid against this schema

In CI and from code

The same schema by its name, onix-3.1-short, through the API.

npx @xmlvalid/cli validate "**/*.xml" --schema onix-3.1-short
- uses: xmlvalid/validate-action@v1
  with:
    files: "**/*.xml"
    schema: onix-3.1-short
    api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
  -H "Authorization: Bearer $XMLVALID_API_KEY" \
  -F document={{ $schema->example ?? 'document.xml' }} -F schema=onix-3.1-short

Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups