If you are having a problem using Vault, post a message here.
Moderator: SourceGear
-
wkrzystek
- Posts: 33
- Joined: Mon May 15, 2006 11:25 am
Post
by wkrzystek » Wed Nov 26, 2008 11:14 am
We're looking to upgrade from version 3.5.2 to the latest version 4.1.4 of Vault. We've automated quite a few routine tasks using the command line client and it looks like the format of the XML output has changed in the newer version from using XML attributes to separate XML nodes. We've invested alot of effort into building routines to parse the XML output. Is there any setting that could generate the XML attributes instead of nodes like in 3.5.x?
Old 3.5.x style XML output:
Code: Select all
<vault>
<checkoutlist>
<checkoutitem id="5">
<checkoutuser username="devuser" version="1" repositorypath=">$/LOCAL/VAULTTEST/WKTEST.PRG" locktype="exclusive" comment="" hostname="waltvm02/mis.local" localpath="H:\VAULTTEST\WKTEST.PRG" folderid="4" lockedwhen="11/26/2008 11:39:20 AM" miscinfo="" />
</checkoutitem>
</checkoutlist>
<result success="yes" />
</vault>
New 4.1.x style XML output:
Code: Select all
<vault>
<checkoutlist>
<checkoutitem>
<id>5</id>
<checkoutuser>
<username>devuser</username>
<version>1</version>
<repositorypath>$/LOCAL/VAULTTEST/WKTEST.PRG</repositorypath>
<locktype>exclusive</locktype>
<comment />
<hostname>waltvm02/mis.local</hostname>
<localpath>H:\VAULTTEST\WKTEST.PRG</localpath>
<folderid>4</folderid>
<lockedwhen>11/26/2008 11:39:20 AM</lockedwhen>
<miscinfo />
</checkoutuser>
</checkoutitem>
</checkoutlist>
<result>
<success>True</success>
</result>
</vault>
-
shannon
Post
by shannon » Wed Nov 26, 2008 11:47 am
There's no setting to change the output back to the old style. Some of the commands have been changed to match the old style formatting, but not all of them, obviously.
Can you tell me which specific commands you are parsing the output of?
-
wkrzystek
- Posts: 33
- Joined: Mon May 15, 2006 11:25 am
Post
by wkrzystek » Fri Nov 28, 2008 3:57 pm
I'm wrapping most of the output. It seems that the ListCheckouts command changed the most as far as the XML structure as well as the success or failure for every command.
-
shannon
Post
by shannon » Tue Dec 02, 2008 8:54 am
Unfortunately, you'll have to update your parser to use the new format.