The Write XML action does not run a program, so there is no exit code. You could use the READ_XML system macro to conditionally build the step only if the XPath expression is found in the file.
http://www.kinook.com/VisBuildPro/Ma...stemmacros.htm
http://www.kinook.com/VisBuildPro/Manual/buildrules.htm