$otpXML = new FluidXml(simplexml_load_file('./XML/OTP.xml'));
$outXML = new FluidXml($otpXML);
$result = $dsig->getSignedDocument();
//$result is Signed XML block
$outXML->add($result);
$keyInfo = $outXML->query("//KeyInfo");
echo $keyInfo->length();
Signature is the block inside result
the thing is $keyInfo->length() is zero, even when I have added the node to $outXML