I am also interested in this topic as I am trying to do the same task for research project GEYSERS.<br><br><div class="gmail_quote">On Wed, May 18, 2011 at 6:36 PM, Gian Uberto Lauri <span dir="ltr"><<a href="mailto:saint@eng.it">saint@eng.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello all,<br>
<br>
I am writing an OCCI implementation that accepts OVF for the<br>
Venus-C research project. This implementation parses OVF and<br>
uses the extracted informatios to build the input fir the<br>
appropriate OCA api.<br>
<br>
/compute works using OCA allocate(), now I am working on<br>
/compute/[id] that will use OCA info(). This call returns an XML<br>
that I have to translate into an OVF.<br>
<br>
I choosed to parse this XML using xjc to compile xsd definitions<br>
into Java classes.<br>
<br>
I downloaded the xsd from the hyperlink in the XML-RPC page, but<br>
the definition for VMs (i.e. the answer of the info() OCA api)<br>
is too coares, and I need to parse at least some of the tags<br>
inside the <TEMPLATE /> tag to get finer grained informations.<br>
<br>
So I have to change the xsd I downloaded.<br>
<br>
This lead to this question: May I assume that tag order is fixed<br>
inside <TEMPLATE /> ? so that the content may be defined by a<br>
<xs:sequence /> ?<br>
<br>
And does this hold even for the content of <DISK>, <NIC> and<br>
<OS>?<br>
<br>
Common sense says that Ruby should not execute its instruction<br>
out of order, so the order is fixed and some elements may or may<br>
not appear, but the order should not change. Can you confirm<br>
this ?<br>
<br>
Thank you in advance.<br>
<br>
--<br>
ing. Gian Uberto Lauri<br>
Ricercatore / Reasearcher<br>
Laboratorio Ricerca e Sviluppo / Research & Development Lab.<br>
Area Calcolo Distribuito / Distributed Computation Area<br>
<br>
<a href="mailto:GianUberto.Lauri@eng.it">GianUberto.Lauri@eng.it</a><br>
<br>
Engineering Ingegneria Informatica spa<br>
Corso Stati Uniti 23/C, 35127 Padova (PD)<br>
<br>
Tel. <a href="tel:%2B39-049.8283.571" value="+390498283571">+39-049.8283.571</a> | main(){printf(&unix["\021%six\012\0"],<br>
Fax <a href="tel:%2B39-049.8283.569" value="+390498283569">+39-049.8283.569</a> | (unix)["have"]+"fun"-0x60);}<br>
Skype: gian.uberto.lauri | David Korn, AT&T Bell Labs<br>
<a href="http://www.eng.it" target="_blank">http://www.eng.it</a> | ioccc best One Liner, 1987<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br>