Thanks, I was actually hoping that XMLSec or some other library had a set of functions like the ones for building a signature node in XMLSec, but for building a Security node instead. But then again, the security-node isn't that complex so I guess I can do it by hand :-) - Erik