This example shows you how to do the following:

Generate a pfx file using OpenSSL.
Load an XML file.
Load the pfx file.
Sign the xml document.
Validate the signed xml document.