From owner-freebsd-stable@FreeBSD.ORG Thu Dec 12 07:02:41 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1D95C185; Thu, 12 Dec 2013 07:02:41 +0000 (UTC) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CEE1D1273; Thu, 12 Dec 2013 07:02:40 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.31]) by ltcfislmsgpa07.fnfis.com (8.14.5/8.14.5) with ESMTP id rBC72b7o017509 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 12 Dec 2013 01:02:38 -0600 Received: from LTCFISWMSGMB21.FNFIS.com ([169.254.1.7]) by LTCFISWMSGHT03.FNFIS.com ([10.132.206.31]) with mapi id 14.03.0158.001; Thu, 12 Dec 2013 01:02:36 -0600 From: "Teske, Devin" To: "Daniel O'Connor" Subject: Re: BIND segway -> python -> first-class ports Thread-Topic: BIND segway -> python -> first-class ports Thread-Index: AQHO9oguAMsIQg72sUSzcf93F1B7uw== Date: Thu, 12 Dec 2013 07:02:35 +0000 Message-ID: <5A92C643-0BA6-4D15-AB54-DB78BE00583A@fisglobal.com> References: <20131210023615.GR55638@funkthat.com> <52A68141.6010003@mu.org> <622122.74675.bm@smtp120.sbc.mail.gq1.yahoo.com> <20131210224915.GA55638@funkthat.com> <52A82099.9080100@bluerosetech.com> <0EC3A50D-A6BE-4F3B-87D6-AB0470F0BA64@gsoft.com.au> <4174A92E-F202-4FFB-BFED-C38A9D0A7F91@fisglobal.com> <0D92E13A-F869-492C-852B-37A0BFB1674C@gsoft.com.au> <38856510-A2D9-41E6-8CDC-ED282BDA933A@gsoft.com.au> In-Reply-To: <38856510-A2D9-41E6-8CDC-ED282BDA933A@gsoft.com.au> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.132.253.120] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87, 1.0.14, 0.0.0000 definitions=2013-12-12_02:2013-12-12,2013-12-12,1970-01-01 signatures=0 Cc: Kevin Oberman , Devin Teske , "freebsd-stable@freebsd.org Stable" , "Teske, Devin" , Darren Pilgrim X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Devin Teske List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2013 07:02:41 -0000 On Dec 11, 2013, at 9:46 PM, Daniel O'Connor wrote: >=20 > On 12 Dec 2013, at 12:24, Teske, Devin wrote: >>> Thanks, if only I'd know about this 6 months ago :) >>=20 >> I just wrote it from scratch, so didn't exist until today ;D >=20 > Hah nice, although I imagine there is plenty of legal XML it can't parse. >=20 > That plays to another point about this sort of work - it's very hard to w= rite shell script that will work properly in all cases (things like spaces,= or even newlines and unprintable characters in filenames). >=20 If I had spent more time on it, then it would be able to parse any XML. However, it wasn't worth going further without first having a look at the C code that produces the output. For example, different XML encoding libraries may encode the property values more or less strictly (for example, are values properly encoded to prevent a value of "" (for example) from prematurely terminating the property borking the XML valiation. (my guess would be that it would be encoded fully as "</name>". Just a matter of extending the extract_data() and extract_attr() functions and then generalizing a little more. --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.