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

Re: svn --xml outputs invalid XML with unversioned files (issue #2656)

From: Sander Rijken <sr_at_d-90.nl>
Date: 2006-11-16 16:14:33 CET

accidentally hit the shortcut I shouldn't have hit (sent the mail
before I was finished).
On Nov 16, 2006, at 4:05 PM, Sander Rijken wrote:

> When trying to interact with svn.exe using its XML format, it
> appeared to spit out invalid xml when errors occur. I encountered
> it with a command similar to:
> svn status --xml versionedDirectory\versionedFile
> unversionedDirectory\unversionedFile
>
> This outputs the following xml:
> <?xml version="1.0"?>
> <status>
> <target
> path="src\master.build">
> </target>
> <target
> path="build-0\AssemblyInfo.cpp">
> </status>
>
> which is obviously invalid because the second <target> tag is
> opened but not closed.
>
>
> Someone else appears to have entered an issue about the same
> problem in svn log:
> http://subversion.tigris.org/issues/show_bug.cgi?id=2656
>
> for example:
> svn log --xml unversionedDir\unversionedFile outputs:
>
> <?xml version="1.0"?>
> <log>
>

I'm not sure what the preffered solution is, but at the moment I see 3:
- Include the errormessage in the xml inside an <error> tag or
something (so tools reading the xml format can display the error
without having to read stderr),
- Close the tag just opened to make the xml valid, and have the tools
that need error message read stderr
- Not open the tag in the first place.

I think in the end the <error> solution is best, but please comment
on this :)

>
> --
> Sander
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 16 16:15:15 2006

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