Closed hassanakbar4 closed 2 years ago
@{"email"=>"miek@miek.nl", "name"=>nil, "username"=>nil} uploaded file learninggo.xml
(180.2 KiB)
@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented
Hi Miek,
Regarding this:
learninggo.xml(0): Warning: Invalid document before running preptool: Did not expect element section there, line 96
I find that on line 96 there's a within
I've also fixed the code where the exception was raised, but the underlying reason for the problem was the invalid xml (
I wish I knew a way to produce as good a list of validation issues with lxml as xmllint can give. Running xmllint on your file shows a list of schema validations that you should fix. I used:
xmllint --relaxng xml2rfc/data/v3.rng --valid --noout issue/375/learninggo.xml
@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed status from new
to closed
@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed resolution from ` to
fixed`
@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented
Fixed in [2584]:
Fixed several places where unexpected input could cause exceptions. Also turned the invalid input document warning into an error. Fixes issue #375.
component_Version_3_cli_txt
resolution_fixed
type_defect
| by miek@miek.nlon my learninggo.xml xml2rfc-2.10.1 now crashes with:
It's also unclear why this is an invalid doc - in v2 output it would dump a
expected author* cite
etc thingy which was helpful in debugging. The crash is not help obviously.Attaching the full xml just in case.
Issue migrated from trac:375 at 2021-10-20 18:29:58 +0500