[xmlsec] RE: Sign more the one document

Aleksey Sanin aleksey at aleksey.com
Wed Apr 12 06:46:17 PDT 2006


 > How can I make a template with refereces to three files?
 > For examples d:\invoice1.xml, d:\invoice2.xml;d:\invoice 3.xml?

Something like this will do (I skip a lot of stuff):

<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
...
   <SignedInfo>
     ...
     <Reference URI="invoice1.xml">
     ...
     </Reference>
     <Reference URI="invoice2.xml">
     ...
     </Reference>
     <Reference URI="invoice3.xml">
     ...
     </Reference>
   </SignedInfo>
   ...
</Signature>

(In this example we assume that invoiceX.xml files are located
in the current folder and that LibXML2 is compiled with file://
protocol support).

Alesksey





More information about the xmlsec mailing list