xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] Extra white space escaping to preserve the infoset
- From: John Cowan <jcowan AT reutershealth.com>
- To: "Bradley S. Huffman" <hip AT cs.okstate.edu>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] Extra white space escaping to preserve the infoset
- Date: Tue, 8 Jul 2003 17:36:59 -0400
Bradley S. Huffman scripsit:
> Hmmm, I could easily see users, for portablity, doing something like
>
> String line_seperator = System.getProperty("line.seperator");
> ...
> attribute.setValue("one and two" + line_sperator + "and three");
> ...
> serializer.setLineSeperator(line_seperator);
>
> and then wondering why the string is one char. longer on some systems then
> on others.
Because the line separator (a) is not the same on all systems, and (b)
is not portable. When dealing with XOM, the right thing is \n, \n, and
once again \n.
--
Some people open all the Windows; John Cowan
wise wives welcome the spring jcowan AT reutershealth.com
by moving the Unix. http://www.reutershealth.com
--ad for Unix Book Units (U.K.) http://www.ccil.org/~cowan
(see http://cm.bell-labs.com/cm/cs/who/dmr/unix3image.gif)
-
Re: [XOM-interest] Extra white space escaping to preserve the infoset
, (continued)
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, Elliotte Rusty Harold, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, Bradley S. Huffman, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, John Cowan, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, Bradley S. Huffman, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, Elliotte Rusty Harold, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, Bradley S. Huffman, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, John Cowan, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, Bradley S. Huffman, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, John Cowan, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, Bradley S. Huffman, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, John Cowan, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, Bradley S. Huffman, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, John Cowan, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, Bradley S. Huffman, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, John Cowan, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, Bradley S. Huffman, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, John Cowan, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, Elliotte Rusty Harold, 07/08/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, Bradley S. Huffman, 07/09/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, Elliotte Rusty Harold, 07/09/2003
- Re: [XOM-interest] Extra white space escaping to preserve the infoset, John Cowan, 07/09/2003
Archive powered by MHonArc 2.6.24.