File: synopsis.pl

package info (click to toggle)
libxml-tidy-perl 1.12.B55J2qn-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 260 kB
  • ctags: 73
  • sloc: perl: 781; makefile: 11
file content (11 lines) | stat: -rw-r--r-- 248 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
use XML::Tidy;

# create new   XML::Tidy object from         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();