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
<?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><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><author>Alex Sandro</author><name>Ferrari</name><price>44.95</price><publish_date>2099-05-16</publish_date><description>Simple XML file.</description>
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec