I'm running the Accurev generic action to execute a CLI call to return a list in XML format. I don't think the fact that it's Accurev is important. I need to grab the XML output in order to Iterate over the nodes. In the Action that runs the Accurev CLI command, I've selected 'Logging Properties' under the 'Runtime' tab in order to specify that the XML output should be sent to a variable. I then use the 'Define XML Document' action and specify the variable that has the XML in it. However, this action fails because it's not valid XML:-
Loading from source text...
Failed to define XML document.
Parse error: Invalid at the top level of the document.
at AccuRev: show -mc -s "StreamName" -fxs Streams
So, what is breaking this is that the action that runs the Accurev CLI command is outputing not only the expected XML to a variable but also the command itself.
Can someone suggest a neat way to get a command line program to output just the program's XML to a variable and not to log the command itself?
Regards,
Clive