Serving the Quantitative Finance Community

 
User avatar
wynand494
Topic Author
Posts: 0
Joined: February 20th, 2004, 5:22 am

Creating XML files from VBA or C++ for running batches?

August 9th, 2008, 7:46 am

HiI am in the process of automating my simulations in Murex. Currently I record macros which generate the xml files which i trigger at a certain time everyday. If i need to make any changes in the nature of simulation (for example change the bump size of curve from +10 bps to -10bps), I modify the xml file for that change and run it. I want to however make the one time effort to develop a neat interface to be able to do these modifications from excel such that the xml file gets created automatically for me to run the script.Question1) Is it better to do this using VBA's Microsoft Scripting Runtimeor2) Using C++ (i do not know how to create xml files through C++ yet though - is it worth the effort to learn it and do it through C++?)regards
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Creating XML files from VBA or C++ for running batches?

August 9th, 2008, 9:20 am

oops, dbl
Last edited by Cuchulainn on August 8th, 2008, 10:00 pm, edited 1 time in total.
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Creating XML files from VBA or C++ for running batches?

August 9th, 2008, 9:25 am

Quote2) Using C++ (i do not know how to create xml files through C++ yet though - is it worth the effort to learn it and do it through C++?)It's possible in C++ using MS drivers. I have a discussion in my 2004 book.But personally I think using C# is much much easier, especially since we can use Reflection API (meta stuff). You could use some Event/Delegate to trigger generation of XML file instead of manual editing?hope this helps.
 
User avatar
marpa
Posts: 0
Joined: August 24th, 2005, 6:39 am
Location: Warsaw, PL

Creating XML files from VBA or C++ for running batches?

August 11th, 2008, 5:51 am

You can add Microsoft XML in the references of your VBA project just like you do it with Scripting Runtime.M.