I do not know if this is the list for this question.

I am try to learn about enveloping signature.

If I sign another xml file, what can happen?
I cannot find examples.

*For this file:*

<?xml version="1.0" encoding="ISO-8859-1"?>
<newdoc>
  <content>hi</content>
</newdoc>

*First case "using xmlAddChild":*
...
*<ds:Object Id="obj-1236">*<newdoc>
  <content>hi</content>
</newdoc>*</ds:Object>*
*</ds:Signature>*

- The enconding declaration disappears...
- Possible namespace conflit (without prefix)

*Second case "using xmlNodeSetContent":*
...
*<ds:Object Id="obj-1236">**&lt;?xml version="1.0"
encoding="ISO-8859-1"?&gt;&#xD;*
*&lt;newdoc&gt;&#xD;*
*  &lt;content&gt;hi&lt;/content&gt;&#xD;*
*&lt;/newdoc&gt;**</ds:Object>*
*</ds:Signature>*

Exists another way? What pros and cons?

Can you recommend Articles.

Thanks,
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to