[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [virt-tools-list] [libosinfo PATCHv2 02/11] loader: Load datamaps



On Wed, Dec 12, 2012 at 10:59:17AM +0000, Daniel P. Berrange wrote:
> On Tue, Dec 11, 2012 at 07:20:06PM +0100, Christophe Fergeau wrote:
> > Install scripts can add a 'datamap' attribute when they declare
> > their config parameters. The value of this attribute is the ID
> > of a datamap, which is an XML file containing key/value pairs:
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > <libosinfo version="0.0.1">
> >   <datamap id="http://example.com/osinfo/test";>
> >     <entry>
> >       <inval>generic-val1</inval>
> >       <outval>foo</outval>
> >     </entry>
> >     <entry>
> >       <inval>generic-val2</inval>
> >       <outval>bar</outval>
> >     </entry>
> >   </datamap>
> > </libosinfo>
> 
> I'm thinking this format is rather verbose. Could we do it like
> 
>    <datamap id="......">
>      <entry inval="XXXX" outval="YYYY"/>
>      <entry inval="XXXX" outval="YYYY"/>
>      <entry inval="XXXX" outval="YYYY"/>
>      <entry inval="XXXX" outval="YYYY"/>
>      <entry inval="XXXX" outval="YYYY"/>
>    </datamap>

Sure, I'll change it

Christophe

Attachment: pgpjO3f88Voyr.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]