Read Mac OS plist files as xml (using XML::LibXML) / perl
XML::PList - parse mac os .plist files
use XML::PList;
# parse file
my $data = XML::PList->new('file.plist')->parse();
# parse string
my $data = XML::PList->new(\'<?xml...<plist>...')->parse();
parse mac os .plist (only xml) files
create XML::PList object
my $plist = XML::PList->new($filename);
my $plist = XML::PList->new(\$string_with_plist_xml);
# parse binary plist via external utility plutil (on Mac OS only)
my $xml_string = qx'plutil -convert xml1 -o - binary.plist';
my $plist = XML::PList->new(\$xml_string);
parse plist xml into perl structure
my $data = $plist->parse();
To install this module type the following:
perl Makefile.PL
make
make test
make install
This module requires these other modules and libraries:
Copyright (C) 2012 by Sergey Mudrik
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.