Re: Cannot get an evenloped signature to work...

2008-06-27 Thread Sean Mullan
Ian Hummel wrote: hmmm you're right. Another thing I noticed is that if I add assertion.setIdAttribute("id", true); things seem to work as well... Can you comment on that? Yes, you are registering the ID so it doesn't execute the same code path that triggered the NPE. But, you shou

Re: Cannot get an evenloped signature to work...

2008-06-27 Thread Ian Hummel
hmmm you're right. Another thing I noticed is that if I add assertion.setIdAttribute("id", true); things seem to work as well... Can you comment on that? Thank you Sean! On Jun 26, 2008, at 5:49 PM, Sean Mullan wrote: You must always use the DOM namespace aware methods when creat

Re: Cannot get an evenloped signature to work...

2008-06-26 Thread Sean Mullan
You must always use the DOM namespace aware methods when creating elements and attributes, change: > Element assertion = doc.createElement("Assertion"); > assertion.setAttribute("id", "mynode"); to: > Element assertion = doc.createElementNS(null, "Assertion"); > assertion.setAttributeN