in reply to XML::LibXML library issue

First, store the output to a variable. Then apply the substitution (untested):
my $out = $doc->toString; $out =~ s/\u2028\u2029//g;

BTW, see <pre> Versus <code> Tags and stop using <pre> tags for normal text.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: XML::LibXML library issue
by tarun28jain (Initiate) on Dec 09, 2013 at 12:46 UTC

    I need to write this modified data in a response file. Previously it was done using

     $doc->toFH( $file_handle, 1 );

    Can i somehow write this modified data back in $doc object from $out so that response file does not have these removed characters in them.

      Sure. See the documentation of print on how to do it.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ