<div dir="ltr">Hi, I am using [1] xmlSecTransformCtxXmlExecute to canonicalize a xmlSecNodeSet with exclc14n "xmlSecTransformExclC14NId".<div><br></div><div><b>The file (file.xml):</b><br><div><div><?xml version="1.0"?></div>
<div><catalog></div><div>   <carro id="carro101"></div><div>      <author>Alex Sandro</author></div><div>      <name>Ferrari</name></div><div>      <price>44.95</price></div>
<div>      <publish_date>2099-05-16</publish_date></div><div>      <description>Simple XML file.</description></div><div>   </carro></div><div></catalog></div></div></div><div><div><br>
</div><div><b>After applying the transform:</b><br><div><div><carro id="carro101"></div><div>      <author>Alex Sandro</author></div><div>      <name>Ferrari</name></div><div>      <price>44.95</price></div>
<div>      <publish_date>2099-05-16</publish_date></div><div>      <description>Simple XML file.</description></div><div>   </carro></div></div></div><div><br></div><div>The transform did not remove the break line.</div>
<div><br></div><div><b>I did apply the transform again over 'result'</b>:</div><div><author>Alex Sandro</author><name>Ferrari</name><price>44.95</price><publish_date>2099-05-16</publish_date><description>Simple XML file.</description><br>
</div><div><br></div><div><b>Documents attached:</b><br></div><div>file.xml - file to transform</div><div>result.xml - file after transform</div><div>result_from_result.xml - file result.xml after transform</div><div><br>
</div><div><b>Using notpad++ to show break lines (View/Show Symbol/Show End of Line)</b></div><div><div><u>file.xml</u></div><div><div><?xml version="1.0"?>CR LF</div><div><catalog>CR LF</div></div><div>
...</div><div><br></div><div><u>result.xml</u></div></div><div><div><carro id="carro101">LF</div><div>      <author>Alex Sandro</author>LF</div></div><div>...</div><div><br></div><div><b>How to fix this problem?</b></div>
<div><br></div><div>My configuration:</div><div>Windows 7, Visual Studio 2010, xmlsec 1.2.19.</div><div><div>xmlsec linked to libiconv-1.9.2, libxml2-2.9.1, libxslt-1.1.28</div></div></div></div>