Thread XML::Simple: Inhalte löschen (7 answers)
Opened by Gast at 2005-09-27 13:38

renee
 2005-09-27 14:14
#58407 #58407
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Ich würde mit CPAN:XML::Twig arbeiten:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
use XML::Twig;

my $twig=XML::Twig->new(
twig_handlers =>
{
link => sub { if($counter == 0){$_->delete; $counter++;} }, #
},
pretty_print => 'indented',
);
$twig->parsefile( 'doc.xml');
$twig->flush;


ungetestet...
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread XML::Simple: Inhalte löschen