You will actually digests something like (see C14N spec) <t1 i="Foo" xmlns="urn:envelope" >Hello</t1> Note that xmlsec utility has an option "--store-references" that prints out all the pre-digest buffers. Aleksey