xml_to_csv.pl - Converts the XML file to a CSV file suitable for being imported into Microsoft Outlook or another mail client.
perl xml_to_csv.pl dir.xml > dir.csv
Converts the XML file to a CSV file suitable for being imported into Microsoft Outlook or another mail client.
$> perl xml_to_csv.pl 000000000000-directory.xml > directory.csv
The generated comma-separated file contains the column headings on the first line.
"First Name", "Last Name", "Phone", "Display Name"
The contents of the "First Name" column are taken from the fn element in the 000000000000-directory.xml file. Similarly, the contents of the "Last Name" column are taken from the <ln> element and the contents of the "Phone" column are taken from the <ct> element. The contents of the "Display Name" column are taken from the <lb> element, if present and not blank; otherwise, the "Display Name" entries consist of the first and last name of the contact.
Polycom::Contact::Directory - parses the XML-based local contact directory file used by Polycom SoundPoint IP, SoundStation IP, and VVX VoIP phones, and can be used to read, modify, or create contacts in the file.
Zachary Blair, <email@example.com>
Copyright (C) 2010 by Polycom Canada
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.