NAME

Util::Medley::XML - utility XML methods

VERSION

version 0.057

SYNOPSIS

my $util = Util::Medley::XML->new;

DESCRIPTION

Provides utility methods for working with XML. All methods confess on error.

METHODS

beautifyFile

Beautifies an XML file. Requires the xmllint command.

usage:
$util->beautifyFile($path);

$util->beautifyFile(path => $path);
args:
path [Str]

Location of the xml file.

beautifyString

Formats an XML string. Requires the xmllint command.

usage:
$util->beautifyString($xml);

$util->XmlBeautifyString(xml => $xml);
args:
xml [Str]

An XML string.