xml_dsig and xmlSign functionality