Generate xml node tree from xmi (xml) help

M

Mikael P

Hi,

I am using argouml ( really neat UML modeling tool) to create a model. I
export the model to
xmi format ( it's xml).

My UML-diagram looks like this:

Brand A
|
--------------------
| | |
Brand B Brand C Brand D

And Brand B, Brand C and Brand D can also have children and so on .........

I need to generate an xml file that can describe these relationships like:



<MyModel>
<Brand A>
<Brand B>
</Brand B>
<Brand C>
</Brand C>
<Brand D>
</Brand D>
</Brand A>
</MyModel>

I am thinking of checking the children for root (Brand A) and generate
TAGs for each node.
Then I make the first node to the left (Brand B) the parent get all
children for that one.

Any one with hints on how I can do this in xslt. I need some sort of
traversing to get the tree right?

Regards,

//Mikael
 
S

Soren Kuula

Mikael said:
Hi,

I am using argouml ( really neat UML modeling tool) to create a model. I
export the model to
xmi format ( it's xml).

Try posting that XML . .

Soren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top