[xmlsec] debugging transforms

Alex Salcianu asalcianu at itasoftware.com
Fri Apr 6 06:37:12 PDT 2007


I'm currently using XPath Filter 2.0 transforms to specify
the parts of the document that should go into a reference.
My references look like

    <Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2">
      <XPath xmlns="http://www.w3.org/2002/06/xmldsig-filter2" 
      <XPath xmlns="http://www.w3.org/2002/06/xmldsig-filter2" 
  <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>

[ for brevity, I omitted the actual XPath expressions ]

For debugging, I would like very much to be able to print all nodes that
are selected by this succession of XPath2's (this way, I can check that
XMLSec selects the nodes that I actually intend to select).

What would be the best function inside xmlsec to instrument for this 

XMLSec already contains a function (xmlSecNodeSetDebugDump) that prints 
a set
of nodes.



More information about the xmlsec mailing list