2 # Copyright (C) 2006-2008 Georgia Public Library Service
4 # Author: David J. Fiander
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of version 2 of the GNU General Public
8 # License as published by the Free Software Foundation.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public
16 # License along with this program; if not, write to the Free
17 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 # This file reads a SIPServer xml-format configuration file and dumps it
21 # to stdout. Just to see what the structures look like.
23 # The 'new XML::Simple' option must agree exactly with the configuration
24 # in Sip::Configuration.pm
29 use XML::Simple qw(:strict);
32 my $parser = new XML::Simple( KeyAttr => { login => '+id',
34 service => '+port', },
35 GroupTags => { listeners => 'service',
37 institutions => 'institution', },
38 ForceArray=> [ 'service',
41 ValueAttr => { 'error-detect' => 'enabled',
42 'min_servers' => 'value',
43 'max_servers' => 'value'} );
45 my $ref = $parser->XMLin($ARGV[0]);