Skip to content

Instantly share code, notes, and snippets.

Created May 27, 2021 15:37
What would you like to do?
Validate an RadioDNS (ETSI TS 102 818) SI.xml file offline using xmllint
<?xml version="1.0" encoding="UTF-8"?>
<schema elementFormDefault="qualified" xmlns="">
<import namespace="" schemaLocation="xml.xsd"/>
<import namespace="" schemaLocation="spi_33.xsd"/>
wget -nc -q -O ./xml.xsd
wget -nc -q -O ./spi_33.xsd
xmllint --nonet --noout --schema combined.xsd ./SI.xml
Copy link

njh commented May 27, 2021

There is a warning that a schema has already been imported:

spi_33.xsd:8: element import: Schemas parser warning : Element '{}import': Skipping import of schema located at '' for the namespace '', since this namespace was already imported with the schema located at 'xml.xsd'.

This can be hidden by adding --nowarning but that might hide other useful warnings too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment