how to do svn status with --xml option

View: New views
3 Messages — Rating Filter:   Alert me  

how to do svn status with --xml option

by sivagurunath :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Is there any way by which we can simulate "svn status --xml".
I have seen that SVNXMLStatusHandler class does this and its mentioned in the javadoc as "writes XML formatted status information to a specified ContentHandler."

ContentHandler being a SAX handler, how this can be done...

It would be better if someone explain me with the code sample...
Please help me ASAP as this is an urgent issue for me to resolve...

Re: how to do svn status with --xml option

by Alexander Sinyushkin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

That is a more general question of using ContentHandler for xml
handling, not SVNKit, I suppose. SVNKit just converts status information
to an xml document structure using calls to ContentHandler. I think you
can find plenty of xml building ContentHandler examples.

Alternatively, you can take a look at SVNStatusCommand.java. This
command line client class also supports formatting status to an xml
document.

----
Alexander Sinyushkin,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

sivagurunath wrote:

> Hi,
>
> Is there any way by which we can simulate "svn status --xml".
> I have seen that SVNXMLStatusHandler class does this and its mentioned in
> the javadoc as "writes XML formatted status information to a specified
> ContentHandler."
>
> ContentHandler being a SAX handler, how this can be done...
>
> It would be better if someone explain me with the code sample...
> Please help me ASAP as this is an urgent issue for me to resolve...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Re: how to do svn status with --xml option

by sivagurunath :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Alexander Sinyushkin... I have done this with your point...
Thanks again

Regards
Sivagurunath

Alexander Sinyushkin wrote:
Hello,

That is a more general question of using ContentHandler for xml
handling, not SVNKit, I suppose. SVNKit just converts status information
to an xml document structure using calls to ContentHandler. I think you
can find plenty of xml building ContentHandler examples.

Alternatively, you can take a look at SVNStatusCommand.java. This
command line client class also supports formatting status to an xml
document.

----
Alexander Sinyushkin,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

sivagurunath wrote:
> Hi,
>
> Is there any way by which we can simulate "svn status --xml".
> I have seen that SVNXMLStatusHandler class does this and its mentioned in
> the javadoc as "writes XML formatted status information to a specified
> ContentHandler."
>
> ContentHandler being a SAX handler, how this can be done...
>
> It would be better if someone explain me with the code sample...
> Please help me ASAP as this is an urgent issue for me to resolve...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
For additional commands, e-mail: svnkit-users-help@svnkit.com