Re: [xml] xmllint: Exit code 0 despite undefined namespace prefix

2021-06-21 Thread BR Chrisman via xml
I wondered about that as well a while back. The manpage specifies the exit statuses below. The document is well-formed and shouldn't fail to parse because the namespace-prefix separating ':' was always allowed as part of a tag name iirc. There's no schema, so it's not a schema validation issue. Th

[xml] xmllint: Exit code 0 despite undefined namespace prefix

2021-06-20 Thread Christian Weiske via xml
Hello, I'm using xmllint to validate files automatically during CI runs, and now an error was not catched. The xml file used a namespace prefix that was not defined. xmllint noticed that, but still gave an exit code of 0: $ xmllint --noout text.xml; echo $? text.xml:66: namespace error :