Br..... IMHO, you have some problems understanding the difference between ID attribute and a Reference URI that points to it. Please, read the spec and try to think about what are you doing! Next you might be interested in reading section 3.2 from the FAQ http://www.aleksey.com/xmlsec/faq.html Aleksey