From: Sean O'Dell Date: 2002-05-16T05:20:15+09:00 Subject: Re: ANN: REXML 2.3.3 Dossy wrote: > On 2002.05.16, Sean O'Dell wrote: > >>I've done pretty printing for XML, and my rule was always: use indents >>and add newlines unless the element has no children, then strip off >>surrounding whitespace and just indent. >> > > I mentioned this to Sean (not you, Sean, the other Sean, the > one that maintains REXML) that the pretty-printer should not > touch tags with the xml:space="preserved" attribute set. > > I wonder how many people actually use that attribute, and > preserve it. Uh...lol...darn, I suggested doing a raw=true|false attribute and didn't even realize there WAS such an attribute as xml:space. This seems the most logical to me...as a means of preserving a particular element which needs to keep its data exactly as it is. Sean