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