Mailinglist Archive: yast-devel (85 mails)

< Previous Next >
Re: [yast-devel] Changeset 39159 adds XML representation to YCP
  • From: Lukas Ocilka <lukas.ocilka@xxxxxxx>
  • Date: Wed, 04 Jul 2007 13:42:32 +0200
  • Message-id: <468B87A8.7030203@xxxxxxx>
Klaus Kaempf wrote:
> I fail to see the relation between a metapackage/repository description
> and YCP.
> 
> The toXml() code 'just' converts, i.e.
> {
>     integer i = 0;
...
>     return i == 5;
> }
> 
> to
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <ycp>
>   <block kind="file">
>     <symbols>
>       <entry global category="filename" type="<unspec>">../../../libycp/testsuite/tests/statements/Repeat-Until-Continue.ycp</entry>
>       <entry category="variable" type="integer">i</entry>
>     </symbols>
>     <point>000</point>
>     <statements>
...
>   </block>
> </ycp>

I see, so it converts YCP code to XML. ...and can it convert XML to YCP?
Does it need a special XML format then?

Anyway, I misunderstood the message. I saw Benji's comment at that
project's page and I thought it was somehow related to another work done
by Benji: His own XMLtoYCP module.

L.

< Previous Next >
Follow Ups