hassanakbar4 / tractive-test

0 stars 0 forks source link

Getting error at column 33851 ... #332

Closed hassanakbar4 closed 3 years ago

hassanakbar4 commented 7 years ago

component_Version 2 cli resolution_fixed type_defect | by jordi.palet@consulintel.es


I’m trying to upload a document with is a cut down version from a previous one …

        I believe everything is ok, and can’t find the problem, but I get

        WARNING: Parsing Error: Opening and ending tag mismatch: section line 1 and middle, line 1, column 33851 (line 1)
        ERROR: Unable to parse the XML document: INPUT
         INPUT: Line 1: Opening and ending tag mismatch: section line 1 and middle
         INPUT: Line 1: Opening and ending tag mismatch: section line 1 and middle
         INPUT: Line 1: Opening and ending tag mismatch: middle line 1 and rfc
         INPUT: Line 1: Premature end of data in tag rfc line 1

I use Mac OS X BBEdit (before was TextWrangler), it seems to use x0D as line separator.

Sample file with the problem (I deleted on extra at the end of the security section.


Issue migrated from trac:332 at 2021-10-20 18:24:38 +0500

hassanakbar4 commented 7 years ago

@{"email"=>"jordi.palet@consulintel.es", "name"=>nil, "username"=>nil} uploaded file draft-palet-v6ops-rfc7084-bis-transition-00.xml (34.8 KiB)

hassanakbar4 commented 7 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


Thank you, Jordi.

If I arrange things a bit differently internally in xml2rfc, in order to deal with the input file using MAC line endings, I get this error message instead; I hope that will help you proceed. I'll run the changes through the test suite, and make this fix part of the next release, so we deal bettwer with MAC line endings.):

Parsing file tests/input/draft-palet-v6ops-rfc7084-bis-transition-00.xml
WARNING: Parsing Error: Opening and ending tag mismatch: section line 299 and middle, line 634, column 12 (line 634)
ERROR: Unable to parse the XML document: tests/input/draft-palet-v6ops-rfc7084-bis-transition-00.xml
 /home/henrik/src/xml2rfc/trunk/cli/tests/input/draft-palet-v6ops-rfc7084-bis-transition-00.xml: Line 634: Opening and ending tag mismatch: section line 299 and middle
 /home/henrik/src/xml2rfc/trunk/cli/tests/input/draft-palet-v6ops-rfc7084-bis-transition-00.xml: Line 1: Document is empty
 /home/henrik/src/xml2rfc/trunk/cli/tests/input/draft-palet-v6ops-rfc7084-bis-transition-00.xml: Line 1: Start tag expected, '<' not found

FWIW, the error message above tells me that the section which starts on line 299 doesn't have a matching end tag; instead a end tag was found.

hassanakbar4 commented 7 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed status from new to closed

hassanakbar4 commented 7 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed resolution from ` tofixed`

hassanakbar4 commented 7 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


Fixed in [2339]:

Refactored the input file reading to accept files with Mac line endings, using python's Universal Newline support. This should make xml2rfc deal correctly with input files following DOS, MAC and Linux line-ending conventions.