Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > model to xml

Reply
Thread Tools

model to xml

 
 
Petterson Mikael
Guest
Posts: n/a
 
      01-15-2004
Hi,

We have "Objects" that relate to each other in a parent-child
relationship. Also these objects can have references to ther objects
that is not a parent. Let me give you all an example.

I have the following parent-child relationship between objects,

Object A=1
|
-------------
| |
Object B=1 Object C=1
|
-------------
| |
Object D=1 Object D=2

Note: The number is the identity when we have more than one object of
the same type.

"Object A=1" is parent to child "Object B=1".

We have the same relationship for "Object D=1". "Object A=1" is parent
to "Object B=1" which is parent to "Object D=1". The path to "Object
D=1" is "Object A=1,Object C=1,Object D=1".

Also "Object B=1" can have a reference to "Object D=2". The
"reference"-attribute in "Object B=1" has the following path,

"Object A=1,Object C=1,Object D=2"

My question is if there is a tool where I can graphically create my
model ( see my nice one !!!) and from that generate an xml file ( or
xmi).

Requirements:
* It is important that when I create "Object B=1" it must be possible
for "Object B=1" to know that it's parent is
"Object A=1". When the hirarchy grows the child at the end should know
the whole path to itself.

* It is also important that a reference to an Object D=2 is created as
"Object A=1,Object C=1,Object D=2"


Has anyone done something similar? Any open-source tools for this? All
ideas/questions are welcome.

BR

//Mikael
 
Reply With Quote
 
 
 
 
Ed Beroset
Guest
Posts: n/a
 
      01-15-2004
Petterson Mikael wrote:
> Has anyone done something similar? Any open-source tools for this? All
> ideas/questions are welcome.


You might be interested in graphviz, which is an open source tool for
laying out neat graphs based on graph descriptions. It's not GPL, so
read the license carefully.

http://www.research.att.com/sw/tools/graphviz/

Ed

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Java Model to Java Model without XML erinbot@gmail.com Java 1 10-06-2006 09:00 PM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
FYI: VTD-XML, the latest XML processing model Jimmy zhang XML 0 11-11-2004 01:26 AM
FYI: VTD-XML, the latest XML processing model Jimmy zhang Java 0 11-11-2004 01:25 AM
Object Model for XML??? Philip Battle XML 2 07-19-2003 08:39 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57