Mailinglist Archive: yast-devel (85 mails)

< Previous Next >
Re: [yast-devel] Changeset 39159 adds XML representation to YCP
  • From: Klaus Kaempf <kkaempf@xxxxxxx>
  • Date: Thu, 5 Jul 2007 08:53:17 +0200
  • Message-id: <20070705065317.GA22280@xxxxxxxxxxxxx>
* Benji Weber <b.weber@xxxxxxxxxxxxx> [Jul 04. 2007 20:51]:
> On 04/07/07, Klaus Kaempf <kkaempf@xxxxxxx> wrote:
> >As part of hackweek project
> >http://idea.opensuse.org/content/ideas/ycp-to-ruby-translator
> >I just committed changeset #39159 to yast-core on svn trunk.
> >
> >This changeset adds toXml() methods to all YCP and YCode classes,
> >giving all ycp code and data structures a representation as XML.
> 
> Nice,
> 
> Could you post an example of how to consume this? i.e. How can one
> take some YCP and convert it to XML.

Just run

  ycpc -x -c filename.ycp

and it will create filename.xml in the same directory.

I'll write more on my blog.

Klaus
-- 
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >