Validate an RadioDNS (ETSI TS 102 818) SI.xml file offline using xmllint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<schema elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema"> | |
<import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/> | |
<import namespace="http://www.worlddab.org/schemas/spi/33" schemaLocation="spi_33.xsd"/> | |
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
wget -nc -q -O ./xml.xsd http://www.w3.org/2001/xml.xsd | |
wget -nc -q -O ./spi_33.xsd https://www.worlddab.org/schemas/spi/33/spi_33.xsd | |
xmllint --nonet --noout --schema combined.xsd ./SI.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a warning that a schema has already been imported:
This can be hidden by adding
--nowarning
but that might hide other useful warnings too.