> the findElement(...) function finds a node, then the code prints its local > name and the namespace URI: > > Before c14n > KeyInfo, http://www.w3.org/2000/09/xmldsig# > > After running c14n the xmlns: namespace binding is gone.
Sorry, that's not the point. Is there a namespace *declaration* there? The fact that the DOM knows that it has that namespace is irrelevant to the c14n process, as far as I'm aware. If the DOM doesn't have the xmlns:ds attribute, you will not get it back out. > findElemen(...) is just a lookup function to find an element according to > the parameters and it does not modify the doc tree in any way. Right, and it also doesn't pay any attention to namespace declarations. -- Scott