- or download this
<?xml version="1.0" encoding="UTF-8"?>
<TRANSACTION>
<FIELDS>
...
<FIELD KEY="operation_type">do_what</FIELD>
</FIELDS>
</TRANSACTION>
- or download this
<opt>
<password>pass&word</password>
</opt>
- or download this
$xmltext =~ s{(<FIELD .*?>)(.*)(</FIELD)}{$1<![CDATA[$2]]>$3}
- or download this
#!perl
use HTML::Parser;
...
<FIELD KEY="operation_type">do_what</FIELD>
</FIELDS>
</TRANSACTION>
- or download this
<TRANSACTION>
<FIELDS>
<FIELD KEY="user">name</FIELD>
...
<FIELD KEY="operation_type">do_what</FIELD>
</FIELDS>
</TRANSACTION>