How to sign an XML in a browser?

Hi,
Does anyone has an example of how to sign an XML in the browser? (an applet or ActiveX)

Thanks in advance,
Guillermo