<?xml version="1.0" encoding="windows-1252"?>
<node id="1004844" title="Re^2: Replace the nth occurence" created="2012-11-21 00:54:08" updated="2012-11-21 00:54:08">
<type id="11">
note</type>
<author id="785425">
Ratazong</author>
<data>
<field name="doctext">
Have you tried to replace the 2nd comma in the following string using your code? Seems there is room for improvement...
&lt;code&gt;
my $str = "aa,bb,cc,dd";
&lt;/code&gt;</field>
<field name="root_node">
1004836</field>
<field name="parent_node">
1004840</field>
</data>
</node>
