[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 Foad <julianfoad_at_btopenworld.com>
Date: 2005-01-14 16:35:43 CET

Philip Martin wrote:
> Do you need an encoding/escaping mechanism?
>
>>~/src/subversion> svn blame ~/tmp/sandbox/t --xml -v -r40:HEAD
>><?xml version="1.0" encoding="utf-8"?>
>
> Does that make sense if the file contents are not UTF-8?

Hmm. Tricky.

>><blame>
>><blameline>
>><text>hello - committed in r17</text>
>
> Suppose the line of text is contains "</text>", will that produce
> invalid XML?

That will be correctly XML-escaped:

   <text>hello with XML &lt;/text&gt; markup</text>

but characters that cannot be XML-escaped (most control characters) will cause
a problem.

Thanks for the thoughts.

Perhaps I'll leave "svn blame --xml" for now and concentrate on "svn list
--xml" next.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 14 16:37:01 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.