main
1xml.instruct!
2xml.Item ID: id, xmlns: 'https://www.example.org/item#' do
3 signature_for reference_id: id, xml: xml
4 xml.Encrypted xmlns: 'https://www.example.org/item#' do
5 key_info = ::Xml::Kit::KeyInfo.new
6 key_info.retrieval_method.uri = "#EK"
7 encrypt_data_for(xml: xml, key_info: key_info) do |xml|
8 xml.EncryptMe do
9 xml.Secret "secret"
10 end
11 end
12 end
13end