[great-users] XML-generating translators

Sumant Tambe sutambe at dre.vanderbilt.edu
Wed Jul 5 12:46:48 CDT 2006


Hi folks,

Can you please point me at a (or a few) non-toy example of 
XML-generating translator written in GReAT? I mean, a more sophisticated 
example than MatchAnyAssoc sample that comes with GReAT or any other 
xml-generating translator.

Specifically, I am interested in generating a file which looks like this:
<connectionQoS>
     <connectionName> UniqueName1  </connectionName>
     <fwdBW> 100  </fwdBW>
     <revBW> 100  </revBW>
     <qos> HIGH_PRIORITY  </qos>
   </connectionQoS>

But I am not able to "put" values such as 100, HIGH_PRIORITY between 
opening and closing tags. But I am able to generate an xml which looks 
like this:
     <connectionQoS>
         <connectionName/>
         <fwdBW/>
         <qos/>
         <revBW/>
     </connectionQoS>

For this, I just showed a composition relationship in the UML diagram 
between connectionQoS and the other contained elements in the UML model. 
The values (100, ...) are there in the source model (ofcourse).

thanks,

Sumant.


More information about the great-users mailing list