tools: Allow processing instructions in some XML parsing tools

IANA registry files have XSLT references, which are harmless to ignore.
This commit is contained in:
Kim Alvefur 2022-02-04 21:20:48 +01:00
parent 99a880ebe5
commit e6f20da22f
2 changed files with 2 additions and 2 deletions

View file

@ -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"))