[great-users] XML-generating translators
Feng Shi
fengshi at isis.vanderbilt.edu
Wed Jul 5 13:00:26 CDT 2006
Hi Sumant,
The GReAT/Udm cannot generate the XML file in which the elements carry
the contents. You can use attribute instead, like:
<connectionQoS>
<connectionName name="UniqueName1"/>
<fwdBW value="100"/>
<qos category="HIGH_PRIORITY"/>
<revBW value="100"/>
</connectionQoS>
In your UML diagram, these attributes should be defined. To obtain the
desired XML format, you can apply XSLT or other transformation tools on
the XML file generated by GReAT/Udm.
Hope this helps,
Thanks,
Feng
-----Original Message-----
From: great-users-bounces at list.isis.vanderbilt.edu
[mailto:great-users-bounces at list.isis.vanderbilt.edu] On Behalf Of
Sumant Tambe
Sent: Wednesday, July 05, 2006 11:47 AM
To: great-users
Subject: [great-users] XML-generating translators
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.
_______________________________________________
great-users mailing list
great-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/great-users
More information about the great-users
mailing list