Sample code for 30+ languages & platforms
Perl

XAdES Examples for Chilkat2 Perl