xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?
- From: John Cowan <cowan AT ccil.org>
- To: Michael Kay <mike AT saxonica.com>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?
- Date: Thu, 28 Jul 2005 08:40:58 -0400
Michael Kay scripsit:
> In XML 1.0 no C0 characters other than x9, xA, or xD are permitted.
>
> In XML 1.1 all C0 characters other than X0 are permitted. A concession,
> apparently, to people still writing in archaic programming languages that
> treat 0 as a string terminator...
To clarify:
In XML 1.0, the characters #x0..#x1F (except #x9, #xA, and #xD) are
forbidden unconditionally; the characters #x7F..#x9F are permitted
unconditionally.
In XML 1.1, the characters #x1..#x1F and #x7F..#x9F are permitted as
character references, but not as raw characters (except #x9, #xA, and
#xD, which are permitted either way). #x0 is still forbidden either
raw or as a reference. (Technically this makes XML 1.1 not backward
compatible with XML 1.0. Whoop.)
The point of allowing these as references is to permit straightforward
XML serialization of database fields, which typically cannot contain #x0,
while preventing outright binary from being serialized.
--
I suggest you call for help, John Cowan
or learn the difficult art of mud-breathing. cowan AT ccil.org
--Great-Souled Sam http://www.ccil.org/~cowan
-
[XOM-interest] Is XML Text or CDATA that includes the zero character legal?,
Wolfgang Hoschek, 07/28/2005
- Re: [XOM-interest] Is XML Text or CDATA that includes the zero character legal?, Wolfgang Hoschek, 07/28/2005
-
Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?,
Michael Kay, 07/28/2005
-
Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?,
John Cowan, 07/28/2005
-
Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?,
Wolfgang Hoschek, 07/28/2005
-
Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?,
Michael Kay, 07/28/2005
-
Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?,
John.Cowan, 07/28/2005
-
Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?,
Michael Kay, 07/28/2005
- Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?, Wolfgang Hoschek, 07/28/2005
- Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?, John.Cowan, 07/29/2005
-
Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?,
Michael Kay, 07/28/2005
-
Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?,
Elliotte Harold, 07/29/2005
- Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?, Michael Kay, 07/29/2005
-
Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?,
John.Cowan, 07/28/2005
-
Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?,
Michael Kay, 07/28/2005
-
Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?,
Wolfgang Hoschek, 07/28/2005
-
Re: [XOM-interest] Is XML Text or CDATA that includes the zerocharacter legal?,
John Cowan, 07/28/2005
- Re: [XOM-interest] Is XML Text or CDATA that includes the zero character legal?, John Cowan, 07/28/2005
Archive powered by MHonArc 2.6.24.