Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7pjn-0006YV-61 for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Mar 2019 23:07:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h7pjk-0004Yx-Bp for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Mar 2019 23:07:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7pjk-0004Yq-0t for pgsql-hackers@lists.postgresql.org; Sat, 23 Mar 2019 23:07:36 +0000 Received: from anastigmatix.net ([68.171.219.55]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7pjd-0000mb-Ka for pgsql-hackers@postgresql.org; Sat, 23 Mar 2019 23:07:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QwQyBOI85K8fDNqUAdg7f07exSj5NGwU895Bpdst8RA=; b=Xj8LfSTrJhoopqCXl1alGIlNsT gnUsdxfanZeW+zVpONGItIyHNWCIKdt+bzlcj+uzup+OI2mTWfznq8dcx5+lRzrt2V/kb0QydAtu1 irPxAcjZzo+3oeM6Z4a+wffG8SQUUQEtLW2FnEjl+bkCnNeet+a0rwxA1tY+HXV+xGkmuuMTjVcxp Kk5TlKiNrTWvJbli0nAcJ9vh33WfE5LQbxy7VpAYzf51U51OCdfyH46Ctz69GaQW8BYn9Y4hQy693 jI3D+ketJLIdwJwF2/RqR98tpW7rdtB4drxXtyWZ2UQubEeBYLpeCDrRqA1tFXUkhP0VPJ78X7ZH4 +McsTOrg==; Received: from [184.19.63.78] (port=50182) by bay.acenet.us with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1h7pjW-00CeqH-FW; Sat, 23 Mar 2019 19:07:28 -0400 Subject: Re: Fix XML handling with DOCTYPE To: Tom Lane References: <5C8D5D16.7090206@anastigmatix.net> <23319.1552769738@sss.pgh.pa.us> <5C8D6681.4070504@anastigmatix.net> <24203.1552771272@sss.pgh.pa.us> <5C8D79AF.7010204@anastigmatix.net> <5146.1552837534@sss.pgh.pa.us> <5C8E7FC0.8040401@anastigmatix.net> <31664.1552842991@sss.pgh.pa.us> <5C8E8E2F.9050600@anastigmatix.net> <25228.1552849567@sss.pgh.pa.us> <5C8ECAA4.3090301@anastigmatix.net> <5C8FD4EE.7090107@anastigmatix.net> <12135.1553374744@sss.pgh.pa.us> <5C96AAD4.1090006@anastigmatix.net> <17186.1553379759@sss.pgh.pa.us> Cc: Ryan Lambert , pgsql-hackers@postgresql.org From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5C96BC29.1000509@anastigmatix.net> Date: Sat, 23 Mar 2019 19:07:21 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <17186.1553379759@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-96.8 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap@anastigmatix.net X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 03/23/19 18:22, Tom Lane wrote: >> Out of curiosity, what further processing would you expect libxml to do? > > Hm, I'd have thought it'd try to parse the arguments to some extent, > but maybe not. Does everybody reimplement attribute parsing for > themselves when using PIs? Yeah, the content of a PI (whatever's after the target name) is left all to be defined by whatever XML-using application might care about that PI. It could have an attribute=value syntax inspired by XML elements, or some other form entirely, but there'd just better not be any ?> in it. Regards, -Chap