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

Re: svnlook xml output

From: Paul Koning <Paul_Koning_at_dell.com>
Date: Thu, 10 Apr 2008 11:07:33 -0400

>>>>> "John" == John Peacock <john.peacock_at_havurah-software.org> writes:

 John> Filip Kolendo wrote:
>> Although I think XML is better format. For some reasons svn
>> command has xml output (svn info, for example, is also
>> <keyword>:<SP> formatted when no --xml switch is used).

 John> Yeah, that's what I'm saying. All of the commandline tools
 John> output easily parseable lines (this was a specific design
 John> decision early on). XML is a waste (IMNSHO) when the amount of
 John> data is of the same order of magnitude as the XML tags required
 John> to wrap that data. There are good and valid reasons to use XML
 John> for structured data exchange; I just don't think this is one of
 John> them...

I don't like relying on the output from programs -- output formatting
is generally dictated by the needs of human eyeballs, not programs.
XML format output is the exception, of course.

Rather than parse output -- unless I'm willing to update the script
for new releases -- I prefer to use APIs. For Subversion, the place
to look is pysvn.

   paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-10 17:08:24 CEST

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