[virt-tools-list] [libosinfo PATCHv2 02/11] loader: Load datamaps
Daniel P. Berrange
berrange at redhat.com
Wed Dec 12 10:59:17 UTC 2012
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>
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the virt-tools-list
mailing list