Why does the code need to be in separate Run Script steps? Could you modularize the code into functions, and then call these as necessary from one Run Script step that instantiates the XML document and passes it to the functions that do the necessary work?
|