Hmmm, I wonder if it would be possible to alter the pretty printer to
work even in this case.

What if we check whether an element has leading/trailing whitespace that
needs to be preserved, and selectively disable pretty-printing for that
element only?  Whitespace between tags wouldn't need to be preserved
(unless it was defined in the schema, but most aren't written that way),
so the overall document could still look pretty good.

-- Mark Lewis



On Mon, 2005-07-11 at 16:23 -0700, Radu Preotiuc-Pietro wrote:
> Well, to be honest, the meaning of pretty print is that you give up
> space preservation in order to get a document that's easier to read.
> If you care about spaces being preserved, you should _not_ use pretty
> print. They're exclusive and I am not sure how would they work
> together.
>  
> However, if you access the document using, say, XmlCursor, then all
> the original spaces in the infoset will be there, regardless of the
> Pretty Print value.
>  
> Radu



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to