From e6f20da22f14214d569b1a5e92d54a1d3f530ff9 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 4 Feb 2022 21:20:48 +0100 Subject: tools: Allow processing instructions in some XML parsing tools IANA registry files have XSLT references, which are harmless to ignore. --- tools/dnsregistry.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/dnsregistry.lua') diff --git a/tools/dnsregistry.lua b/tools/dnsregistry.lua index 018eadb2..3fd26628 100644 --- a/tools/dnsregistry.lua +++ b/tools/dnsregistry.lua @@ -1,6 +1,6 @@ -- Generate util/dnsregistry.lua from IANA HTTP status code registry local xml = require "util.xml"; -local registries = xml.parse(io.read("*a")); +local registries = xml.parse(io.read("*a"), { allow_processing_instructions = true }); print("-- Source: https://www.iana.org/assignments/dns-parameters/dns-parameters.xml"); print(os.date("-- Generated on %Y-%m-%d")) -- cgit v1.2.3