Re: Custom XML formatting?

Chris Maloney <voldrani@gmail.com> writes:
> On Mon, Dec 20, 2010 at 5:45 PM, Norman Walsh <ndw@nwalsh.com<mailto:ndw@nwalsh.com>> wrote:
> Whitespace is significant *everywhere* except "element only" content.
>
> I think this is not right. What about whitespace within a tag -- for
> example, between an attribute's name and the equal sign? I just
> checked the spec, and can't find where it indicates explicitly that
> it's not significant, but that's always been my understanding.

No, you're right, I was thinking of content. The whitespace inside the
tags is irrelevant. And, yeah, it bugs me that most tools flow it into
one great big long line.

> Maybe that's what you meant by "Better pretty printing of elements
> and attributes ...".

Yes, it was.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
www.marklogic.com

Received on Tuesday, 21 December 2010 11:55:58 UTC