Re: [weirds] feedback on draft-designteam-weirds-using-http

Francisco Obispo <fobispo@isc.org> Thu, 17 May 2012 20:13 UTC

Return-Path: <fobispo@isc.org>
X-Original-To: weirds@ietfa.amsl.com
Delivered-To: weirds@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EA65E21F86F4 for <weirds@ietfa.amsl.com>; Thu, 17 May 2012 13:13:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, NO_RELAYS=-0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SRbfwBE78iDZ for <weirds@ietfa.amsl.com>; Thu, 17 May 2012 13:13:23 -0700 (PDT)
Received: from mx.pao1.isc.org (mx.pao1.isc.org [IPv6:2001:4f8:0:2::2b]) by ietfa.amsl.com (Postfix) with ESMTP id BA5AA21F8734 for <weirds@ietf.org>; Thu, 17 May 2012 13:13:22 -0700 (PDT)
Received: from bikeshed.isc.org (bikeshed.isc.org [IPv6:2001:4f8:3:d::19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mail.isc.org", Issuer "RapidSSL CA" (not verified)) by mx.pao1.isc.org (Postfix) with ESMTPS id 7570BC9712; Thu, 17 May 2012 20:13:09 +0000 (UTC) (envelope-from fobispo@isc.org)
Received: from [IPv6:2001:4f8:3:64:a559:51fe:97d2:20a3] (unknown [IPv6:2001:4f8:3:64:a559:51fe:97d2:20a3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by bikeshed.isc.org (Postfix) with ESMTPSA id 4BC4A216C33; Thu, 17 May 2012 20:13:09 +0000 (UTC) (envelope-from fobispo@isc.org)
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset="iso-8859-1"
From: Francisco Obispo <fobispo@isc.org>
In-Reply-To: <4FB5537A.9060208@gmx.de>
Date: Thu, 17 May 2012 13:13:07 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <D8BBBFB4-B14D-4CCC-A967-7252476C514E@isc.org>
References: <4FB26082.3070800@gmx.de> <9B94D739-E037-4539-82E8-0E79BBFEC543@hxr.us> <4FB520B4.1070803@gmx.de> <A58EF70A-BBAA-4DA5-A951-C1F16356F741@hxr.us> <4FB5537A.9060208@gmx.de>
To: Julian Reschke <julian.reschke@gmx.de>
X-Mailer: Apple Mail (2.1278)
Cc: weirds@ietf.org
Subject: Re: [weirds] feedback on draft-designteam-weirds-using-http
X-BeenThere: weirds@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "WHOIS-based Extensible Internet Registration Data Service \(WEIRDS\)" <weirds.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/weirds>, <mailto:weirds-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/weirds>
List-Post: <mailto:weirds@ietf.org>
List-Help: <mailto:weirds-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/weirds>, <mailto:weirds-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 17 May 2012 20:13:24 -0000

If you need to specify non-ascii characters in an XML document, you either have to:

a) Encode the characters in their XML entities ñ -> &#241;  or

b) use a CDATA instruction: Unparsed Character Data [1]

[1] http://www.w3schools.com/xml/xml_cdata.asp

The latter approach seems to be more efficient for some.




On May 17, 2012, at 12:37 PM, Julian Reschke wrote:

> On 2012-05-17 20:54, Andy Newton wrote:
>> ...
>>>> Ah yes, the escaping needs to be changed from JSON to XML.
>>> 
>>> There's still a set of characters that won't be usable in XML (yes, not even escaped).
>> 
>> That would be&,<, and>. So I guess we should mention those are to be escaped as well. Gosh XML is overly complex.
>> ...
> 
> No :-).
> 
> JSON allows all C0 control characters. XML only allows TAB, CR, and LF. You can't represent the others in plain XML (you can always invent *another* escaping syntax on top of XML, though).
> 
> And no, XML is not overly complex. It just has certain constraints that make sense for the things it was designed for.
> 
> Best regards, Julian
> _______________________________________________
> weirds mailing list
> weirds@ietf.org
> https://www.ietf.org/mailman/listinfo/weirds

Francisco Obispo 
email: fobispo@isc.org
Phone: +1 650 423 1374 || INOC-DBA *3557* NOC
PGP KeyID = B38DB1BE