File: synopsis.pl

package info (click to toggle)
libxml-tidy-perl 1.20-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 268 kB
  • sloc: perl: 621; makefile: 8
file content (12 lines) | stat: -rw-r--r-- 322 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl
use strict;use  warnings;
use   utf8;use XML::Tidy;

# create new   XML::Tidy object by loading:  MainFile.xml
my $tidy_obj = XML::Tidy->new('filename' => 'MainFile.xml');

#   tidy  up  the  indenting
   $tidy_obj->tidy();

#             write out changes back     to  MainFile.xml
   $tidy_obj->write();