How can I change namespace from ds to dsig dynamically, I have done something like this
ElementProxy.setDefaultPrefix(Constants.SignatureSpecNS, prefix); //prefix is a variable which will be the value of the namespace like ds, dsig, junk
the value of this prefix is passed by user, but it always uses the first value passed by the user
for eg. suppose user first passes dsid then that particular document is signed using dsig prefix but later when user passes ds as a prefix even then also it take dsig as a prefix it does not change it to ds.
here is how it shows.