XSD
Skatteetaten (Norwegian Tax Administration) · 1.40
SAF-T Financial NO 1.40
Norwegian SAF-T Financial
The Norwegian standard audit file of a company's accounts: general ledger, customers, suppliers and transactions.
About
Norwegian companies with electronic accounts must be able to export them as SAF-T Financial on request from the tax administration. The format is based on the OECD SAF-T 2.0.
Good to know
- The schema checks structure and data types. Skatteetaten publishes further validation rules and standard account and tax code lists, which are not applied here.
- The example is the generated sample audit file from Skatteetaten's repository.
Example document
generated_auditfile_formatted_v_1.40.xml · 26.3 KB · valid against this schema
In CI and from code
The same schema by its name, saf-t-no-1.40, through the API.
npx @xmlvalid/cli validate "**/*.xml" --schema saf-t-no-1.40
- uses: xmlvalid/validate-action@v1
with:
files: "**/*.xml"
schema: saf-t-no-1.40
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=saf-t-no-1.40
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