I've got the following xml-file:
cat test.xml
<?xml version="1.0"?>
<a>
<b parm="gerg
wegreqwgwe
gwegwegwe
eg" />
</a>
and when I try to edit the file, xmlstarlet applies changes to the whitespace in the attribute-value:
xml ed -u a/b -v test /tmp/test.xml
<?xml version="1.0"?>
<a>
<b parm="gerg wegreqwgwe gwegwegwe eg">test</b>
</a>
I use:
xml --version
1.5.0
compiled against libxml2 2.7.6, linked with 20706
compiled against libxslt 1.1.26, linked with 10126
Thanks & KR
Thomas
Sorry, this can't really be fixed because xmlstarlet never gets to even see the value with newlines. It's based on libxml2 which follows the XML spec quite strictly:
Last edit: Noam Postavsky 2013-10-22
Thank you for clarifying!
the application responsible for creating this portion of xml is already known for doing things not so right when it comes to creating xml... ;-)
Last edit: rainpumped 2013-10-22