I guess so long as \n is the default having the method doesn't overly harm. Use at your own risk!
Stephen ----- Original Message ----- From: "Martin van den Bemt" <[EMAIL PROTECTED]> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> Sent: Saturday, June 15, 2002 9:16 PM Subject: Re: [Betwixt] Some ideas > <snippet from the xml spec> > 2.11 End-of-Line Handling > > To be exactXML parsed entities are often stored in computer files which, > for editing convenience, are organized into lines. These lines are > typically separated by some combination of the characters > carriage-return (#xD) and line-feed (#xA). > > To simplify the tasks of applications, the characters passed to an > application by the XML processor must be as if the XML processor > normalized all line breaks in external parsed entities (including the > document entity) on input, before parsing, by translating both the > two-character sequence #xD #xA and any #xD that is not followed by #xA > to a single #xA character. > <end snippet of the xml spec> > > So we expect the \n from the parser, we don't have to write it that way > ;) > (hmm really troubled here.. I searched on the word line before and it > didn't turn up anything, am I getting crazy here??..) > > > Mvgr, > Martin > > > On Sat, 2002-06-15 at 22:03, Stephen Colebourne wrote: > > If you've checked the spec, then I withdraw the request ;-) > > Stephen > > ----- Original Message ----- > > From: "Martin van den Bemt" <[EMAIL PROTECTED]> > > To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> > > Sent: Saturday, June 15, 2002 8:46 PM > > Subject: Re: [Betwixt] Some ideas > > > > > > > Hi Stephen, > > > > > > > > > > > > Agreed. Yes "\n" is the default for XML (its like that in dom4j too > > ;-). > > > > > > > > I was also a little unclear if James' comments on setEndOfLine() meant > > that > > > > the method was going to be removed. > > > > > > It defaults now to the default used in some packages and I like the > > > fact that I can set it to something different. Also I couldn't find any > > > reference in the XML specification 1.0 that line endings should be \n. > > > > > > Mvgr, > > > Martin > > > > > > > > > -- > > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > -- > > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
