[xmlsec] C14N break line problem (Windows)

Alexwell Sandro alexwellll at gmail.com
Fri Sep 27 14:41:30 PDT 2013


Hi, I am using [1] xmlSecTransformCtxXmlExecute to canonicalize a
xmlSecNodeSet with exclc14n "xmlSecTransformExclC14NId".

*The file (file.xml):*
<?xml version="1.0"?>
<catalog>
   <carro id="carro101">
      <author>Alex Sandro</author>
      <name>Ferrari</name>
      <price>44.95</price>
      <publish_date>2099-05-16</publish_date>
      <description>Simple XML file.</description>
   </carro>
</catalog>

*After applying the transform:*
<carro id="carro101">
      <author>Alex Sandro</author>
      <name>Ferrari</name>
      <price>44.95</price>
      <publish_date>2099-05-16</publish_date>
      <description>Simple XML file.</description>
   </carro>

The transform did not remove the break line.

*I did apply the transform again over 'result'*:
<author>Alex
Sandro</author><name>Ferrari</name><price>44.95</price><publish_date>2099-05-16</publish_date><description>Simple
XML file.</description>

*Documents attached:*
file.xml - file to transform
result.xml - file after transform
result_from_result.xml - file result.xml after transform

*Using notpad++ to show break lines (View/Show Symbol/Show End of Line)*
*file.xml*
<?xml version="1.0"?>CR LF
<catalog>CR LF
...

*result.xml*
<carro id="carro101">LF
      <author>Alex Sandro</author>LF
...

*How to fix this problem?*

My configuration:
Windows 7, Visual Studio 2010, xmlsec 1.2.19.
xmlsec linked to libiconv-1.9.2, libxml2-2.9.1, libxslt-1.1.28
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20130927/16d3e60b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file.xml
Type: text/xml
Size: 273 bytes
Desc: not available
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20130927/16d3e60b/attachment.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: result.xml
Type: text/xml
Size: 218 bytes
Desc: not available
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20130927/16d3e60b/attachment-0001.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: result_from_result.xml
Type: text/xml
Size: 150 bytes
Desc: not available
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20130927/16d3e60b/attachment-0002.xml>


More information about the xmlsec mailing list