lib/xml_sig/signature.rb
def to_xml(xml=Builder::XmlMarkup.new)
      attributes = {}
      attributes['Id'] = id unless id.nil?
      attributes['xmlns:ds'] = "http://www.w3.org/2000/09/xmldsig#"
      xml.tag!('ds:Signature', attributes) {
        xml << signed_info.to_xml if signed_info
        xml.tag!('ds:SignatureValue')
        xml << key_info.to_xml if key_info
      }
    end
# Construct an XML fragment representing the signature
Construct an XML fragment representing the signature
Construct an XML fragment representing the signature
def to_xml(xml=Builder::XmlMarkup.new)
      attributes = {}
      attributes['Id'] = id unless id.nil?
      attributes['xmlns:ds'] = "http://www.w3.org/2000/09/xmldsig#"
      xml.tag!('ds:Signature', attributes) {
        xml << signed_info.to_xml if signed_info
        xml.tag!('ds:SignatureValue')
        xml << key_info.to_xml if key_info
      }
    end
def to_xml ( xml = Builder :: XmlMarkup . new ) attributes = { } attributes [ 'Id' ] = id unless id . nil? attributes [ 'xmlns:ds' ] = "http://www.w3.org/2000/09/xmldsig#" xml . tag! ( 'ds:Signature' , attributes ) { xml << signed_info . to_xml if signed_info xml . tag! ( 'ds:SignatureValue' ) xml << key_info . to_xml if key_info } end
Construct an XML fragment representing the signature
Construct an XML fragment representing the signature
xml
new