The problem is that the code is automatically picking up one of the key and signing the XML
Difficult to believe that code is picking up one for you. Either you hard coded or the library that you are using has some default value.
More background info need it before we can attempt to help. Are you using any special libraries for this? What are their? Can you post part of the code that is supposed to choose DSA?