You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Paolo Marini <ne...@paolomarini.it> on 2005/01/02 15:58:44 UTC

Not well-formed output for "svn log --xml" command

If I run the following command on a command window (WinXP)

svn log -v --xml -r 3730 svn://mono.myrealbox.com/source/trunk

it happens that the output contains an unexpected character U+001a within
text content of element 'msg' (just before the closing tag </msg>).
I have found this issue trying to parse the output in order to extract some
statistics from the repository. After redirecting the output to a file with

svn log -v --xml -r 3730 svn://mono.myrealbox.com/source/trunk >
mono_History.xml

the attempt to validate it with a free tool from
http://www.elcel.com/products/xmlvalid.html revealed the exact position of
the non-valid character.

Hope this helps. For further info, please contact me.

Paolo Marini




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

RE: Not well-formed output for "svn log --xml" command

Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
On Mon, 3 Jan 2005, Dale Worley wrote:

> -----Original Message-----
> From: Paolo Marini [mailto:news@paolomarini.it]
>
> it happens that the output contains an unexpected character U+001a within
> text content of element 'msg' (just before the closing tag </msg>).
> ---------------------------------------------------------------------
>
> That's caracter code 26, control-Z, which is commonly used as an EOF marker
> in text files under MS-DOS and possibly MS-Windows.  Of course, it's not at
> the end of your file, so it's still an error.
>
See issue #2147. A workaround is to edit the log message that contains the
control character.

//Peter

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

RE: Not well-formed output for "svn log --xml" command

Posted by Dale Worley <dw...@pingtel.com>.
-----Original Message-----
From: Paolo Marini [mailto:news@paolomarini.it]

it happens that the output contains an unexpected character U+001a within
text content of element 'msg' (just before the closing tag </msg>).
---------------------------------------------------------------------

That's caracter code 26, control-Z, which is commonly used as an EOF marker
in text files under MS-DOS and possibly MS-Windows.  Of course, it's not at
the end of your file, so it's still an error.

Dale


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