[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Parseable output: --xml option for more commands

From: Julian Reschke <julian.reschke_at_gmx.de>
Date: 2005-01-16 12:47:06 CET

Leslie Kishalmi wrote:
> Julian Foad wrote:
>> Leslie Kishalmi wrote:
>>> +1 vote on first class element for filename. Something like this:
>>> <entry
>>> committed-date="2003-09-29T22:23:23.939789Z"
>>> last-author="julianfoad"
>>> kind="file"
>>> size="7"
>>> revision="35">eol-test</entry>
>> Can you say why you would prefer it this way? I know the choice
>> between attribute and element can be rather subjective, but if you
>> have any concrete reasons, that would be very helpful.
> Nothing special than the mater of taste. I think CDATA is preferred when
> the whitespace characters are important to be kept by the parser. So it
> might be useful for the blame, but not for list. if we might show some
> consistency with the log command, we could use "path" instead of "entry"
> as element name.

Please don't make up any rules that do not exist in XML. Whitespace
treatment is exactly the same with and without CDATA. In general,
whitespace is always significant unless you specifically say it isn't
(for instance, through a DTD or the xml:space attribute).

Best regards,


<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jan 16 12:48:35 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.