NAME

Util::Medley::XML - utility XML methods

VERSION

version 0.019

SYNOPSIS

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

DESCRIPTION

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

METHODS

xmlBeautifyFile

Beautifies an XML file. Requires the xmllint command.

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

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

Location of the xml file.

xmlBeautifyString

Formats an XML string. Requires the xmllint command.

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

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

An XML string.