<div dir="ltr"><div style>I do not know if this is the list for this question.<br></div><div style><br></div><div>I am try to learn about enveloping signature.</div><div><br></div><div>If I sign another xml file, what can happen?</div>
<div>I cannot find examples.</div><div><br></div><div><b>For this file:</b></div><div><br></div><div><?xml version="1.0" encoding="ISO-8859-1"?></div><div><newdoc></div><div>  <content>hi</content></div>
<div></newdoc></div><div><br></div><div><b>First case "using xmlAddChild":</b></div><div>...</div><div><b><ds:Object Id="obj-1236"></b><newdoc></div><div>  <content>hi</content></div>
<div></newdoc><b></ds:Object></b></div><div><b></ds:Signature></b></div><div><br></div><div>- The enconding declaration disappears...</div><div>- Possible namespace conflit (without prefix)</div><div><br>
</div><div><b>Second case "using xmlNodeSetContent":</b></div><div>...</div><div><b><ds:Object Id="obj-1236"></b><i>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;&#xD;</i></div>
<div><i>&lt;newdoc&gt;&#xD;</i></div><div><i>  &lt;content&gt;hi&lt;/content&gt;&#xD;</i></div><div><i>&lt;/newdoc&gt;</i><b></ds:Object></b></div><div><b></ds:Signature></b></div>
<div><br></div><div>Exists another way? What pros and cons?</div><div style><br></div><div>Can you recommend Articles.</div><div><br></div><div>Thanks,</div><div style><br></div><div style><br></div></div>