PERL : Libconf::Glueconf::X::Xdm C/PYTHON/RUBY : X/Xdm
Libconf::Glueconf::X::Xdm is a template that handles the xdm configuration file
$xdm = new Libconf::Glueconf::X::Xdm({ filename => '/etc/samba/smb.conf' }); $xdm->{foo} = 'bar'; $xdm->write_conf();
creates the template
$xdm = new Libconf::Glueconf::X::Xdm({ .. options .. });
the options are the same as in the Libconf::Glueconf::KeyValue manpage, look there to have the details.
See <Libconf::Glueconf> for general methods