Hi all,<br><br>On Wed, May 18, 2011 at 6:36 PM, Gian Uberto Lauri <span dir="ltr"><<a href="mailto:saint@eng.it" target="_blank">saint@eng.it</a>></span> wrote:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
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></blockquote>
<br>The template attributes are sorted in alphabetical order, so you can assume a fixed order, but you can't be sure about what child elements will be present since the template may contain anything.<br><br>You could however assume the contents if you force the VM creation to be only done using your OVF to OCA server; or if you limit the VM information retrieval to work only for VMs created from your code.<br>
<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
And does this hold even for the content of <DISK>, <NIC> and<br>
<OS>?<br></blockquote>
<br>Even inside each vector attribute, its sub-attributes are ordered alphabetically.<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
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></blockquote>
<br>Yes, after doing some tests it looks to me that the XML is not modified in any way by Ruby.<br><br>Best regards,<br>Carlos.<br><br clear="all"><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px">--<br>
Carlos Martín, MSc<br>Project Major Contributor<br><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>
<br><br><div class="gmail_quote">On Wed, May 18, 2011 at 7:06 PM, Florin Antonescu <span dir="ltr"><<a href="mailto:florinantonescu@gmail.com">florinantonescu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I am also interested in this topic as I am trying to do the same task for research project GEYSERS.<div><div></div><div class="h5"><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" target="_blank">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" target="_blank">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" target="_blank">+39-049.8283.571</a> | main(){printf(&unix["\021%six\012\0"],<br>
Fax <a href="tel:%2B39-049.8283.569" value="+390498283569" target="_blank">+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" target="_blank">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>
</div></div><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>
<br></blockquote></div><br>