XSD Library of Congress · 1.2

MARCXML

MARC 21 XML

MARC 21 bibliographic, authority and holdings records in XML, as exported by library systems.

About

MARCXML carries MARC 21 records field by field: leader, control fields and data fields with indicators and subfields. Library systems, OAI-PMH endpoints and catalogue exports use it.

Good to know

  • The schema checks the record structure, not MARC 21 content rules (which tags, indicators and subfield codes are defined).
  • The example is by xmlvalid.com.

Files

1 file · 6.9 KB

Example document

record.xml · 1.2 KB · valid against this schema

In CI and from code

The same schema by its name, marcxml, through the API.

npx @xmlvalid/cli validate "**/*.xml" --schema marcxml
- uses: xmlvalid/validate-action@v1
  with:
    files: "**/*.xml"
    schema: marcxml
    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=marcxml

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