Re: [xml2rfc] #332 (Version 2 cli): Getting error at column 33851 ...

"HANSEN, TONY L" <tony@att.com> Mon, 12 June 2017 17:28 UTC

Return-Path: <tony@att.com>
X-Original-To: xml2rfc@ietfa.amsl.com
Delivered-To: xml2rfc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9ACF01293FD for <xml2rfc@ietfa.amsl.com>; Mon, 12 Jun 2017 10:28:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.401
X-Spam-Level:
X-Spam-Status: No, score=-5.401 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BSwPn_agVZya for <xml2rfc@ietfa.amsl.com>; Mon, 12 Jun 2017 10:28:30 -0700 (PDT)
Received: from mx0a-00191d01.pphosted.com (mx0b-00191d01.pphosted.com [67.231.157.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9119C1241FC for <xml2rfc@ietf.org>; Mon, 12 Jun 2017 10:28:30 -0700 (PDT)
Received: from pps.filterd (m0049459.ppops.net [127.0.0.1]) by m0049459.ppops.net-00191d01. (8.16.0.17/8.16.0.17) with SMTP id v5CHQuQP013192; Mon, 12 Jun 2017 13:28:21 -0400
Received: from alpi155.enaf.aldc.att.com (sbcsmtp7.sbc.com [144.160.229.24]) by m0049459.ppops.net-00191d01. with ESMTP id 2b1vwhmw8x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Jun 2017 13:28:21 -0400
Received: from enaf.aldc.att.com (localhost [127.0.0.1]) by alpi155.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id v5CHSJUT004947; Mon, 12 Jun 2017 13:28:20 -0400
Received: from mlpi407.sfdc.sbc.com (mlpi407.sfdc.sbc.com [130.9.128.239]) by alpi155.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id v5CHSAVF004712 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 12 Jun 2017 13:28:14 -0400
Received: from MISOUT7MSGHUBAC.ITServices.sbc.com (MISOUT7MSGHUBAC.itservices.sbc.com [130.9.129.147]) by mlpi407.sfdc.sbc.com (RSA Interceptor); Mon, 12 Jun 2017 17:27:55 GMT
Received: from MISOUT7MSGUSRCG.ITServices.sbc.com ([169.254.7.110]) by MISOUT7MSGHUBAC.ITServices.sbc.com ([130.9.129.147]) with mapi id 14.03.0319.002; Mon, 12 Jun 2017 13:27:55 -0400
From: "HANSEN, TONY L" <tony@att.com>
To: "henrik@levkowetz.com" <henrik@levkowetz.com>, "jordi.palet@consulintel.es" <jordi.palet@consulintel.es>
CC: "xml2rfc@ietf.org" <xml2rfc@ietf.org>
Thread-Topic: [xml2rfc] #332 (Version 2 cli): Getting error at column 33851 ...
Thread-Index: AQHS45tIBK0HRwhszkau6hVmBimtQ6IhezuA
Date: Mon, 12 Jun 2017 17:27:54 +0000
Message-ID: <0324DF3A-4072-401B-B875-C9A7D31804AE@att.com>
References: <074.3eaf79aa79890352f16ea609b6949532@tools.ietf.org>
In-Reply-To: <074.3eaf79aa79890352f16ea609b6949532@tools.ietf.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [135.210.8.155]
Content-Type: text/plain; charset="utf-8"
Content-ID: <D62187B2148C55489FAB9104F1BDC236@LOCAL>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-RSA-Inspected: yes
X-RSA-Classifications: public
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-06-12_11:, , signatures=0
X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1706120303
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/u9TgICLr2Vi5QBhkkvOjVvtVY_k>
Subject: Re: [xml2rfc] #332 (Version 2 cli): Getting error at column 33851 ...
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: <xml2rfc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml2rfc/>
List-Post: <mailto:xml2rfc@ietf.org>
List-Help: <mailto:xml2rfc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 12 Jun 2017 17:28:33 -0000

Using CR as the line separator is the root of the issue. The XML library we use would treat that as whitespace, but not a newline. That would definitely explain things.

	Tony

On 6/12/17, 12:45 PM, "xml2rfc on behalf of xml2rfc issue tracker" <xml2rfc-bounces@ietf.org on behalf of trac@tools.ietf.org> wrote:

    #332: Getting error at column 33851 ...
    
     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  </section> at the end of
     the security section.
    
    -- 
    ----------------------------------------+----------------------------------
     Reporter:  jordi.palet@consulintel.es  |      Owner:  henrik@levkowetz.com
         Type:  defect                      |     Status:  new
     Priority:  medium                      |  Milestone:
    Component:  Version 2 cli               |    Version:  2.4.x
     Keywords:                              |
    ----------------------------------------+----------------------------------
    
    Ticket URL: <https://urldefense.proofpoint.com/v2/url?u=https-3A__trac.tools.ietf.org_tools_xml2rfc_trac_ticket_332&d=DwIGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=Kz8VdgPVctDNSNPJ6PsBaw&m=kZ61yPPYfcLI5mDaZdksoJisP9JePMxeUURd07oLc-Y&s=tuVEa23BfoSDS2qz3-RdUrveQtKJGla8lK3U65u8pIc&e= >
    xml2rfc <https://urldefense.proofpoint.com/v2/url?u=http-3A__tools.ietf.org_tools_xml2rfc_&d=DwIGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=Kz8VdgPVctDNSNPJ6PsBaw&m=kZ61yPPYfcLI5mDaZdksoJisP9JePMxeUURd07oLc-Y&s=gRP6s5EYd7XZZZd3sxsXiJ1Jlb0YfaR679WgKMh7wmk&e= >
    
    _______________________________________________
    xml2rfc mailing list
    xml2rfc@ietf.org
    https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_xml2rfc&d=DwIGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=Kz8VdgPVctDNSNPJ6PsBaw&m=kZ61yPPYfcLI5mDaZdksoJisP9JePMxeUURd07oLc-Y&s=vO-MgLjvdVih4H7n7uosS9jj_ko_UhsbWUMeh7urF1Y&e=