xfce3rc -> xfce4rc conversion ?

Matthew Weier OPhinney matthew-lists at weierophinney.net
Thu Jul 31 13:35:02 CEST 2003

-- Ric <fhj52ads at yahoo.com> wrote
(on Thursday, 31 July 2003, 03:52 AM -0700):
> Hey Botsie:
> --- Biju Chacko <biju_chacko at vsnl.net> wrote:
> > On Wed, 30 Jul 2003 20:48:25 -0700 (PDT), Ric wrote:
> > 
> > > I... want to automate converting my XFce 3 panel info into XFce4
> > panel
> > > info.  
> > 
> > Search the archives. 
> I am having no luck finding a single program that allows me to 'just do
> it' in Linux.  
> Actually I have not found any OSS program in Linux that can take text
> and produce XML using any kind of transformation tag sheet/doc/DTD so
> that one can have a one to one correspondence between the (structured)
> text and the XML file created. 
> Fortunately, the parts in  xfce3rc  that need transformation are
> structured so maybe it won't be that hard to do...

While I can't think of a *program* that would do it, I *DO* know that
there are ways to do this in perl. 

You claim that the xfce3rc file is structured, which means you *should*
be able to parse it into a complex data structure in perl, which can
then be rewritten to XML using a number of facilities -- XML::Simple
being likely the easiest as you should be able to just throw it the data
structure and have the XML generated by it.

I may be able to help, if you'd like.

Matthew Weier O'Phinney

More information about the Xfce4-dev mailing list