in reply to Re: XML::Twig and the monasteries XML
in thread XML::Twig and the monasteries XML
$twig=XML::Twig->new( #discard_spaces => 1, input_filter => sub { $_[0] =~ s/^\n//r }, );
Also found discard_spaces but couldn't make it work though.
or rather not !
I checked all calls to the callback, and the input filter is run on each line of input.
I.e. it will also discard newlines in the middle of a content.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|