Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes XML and Related Technologies and the fly likes Generating ER diagram from XML file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Generating ER diagram from XML file." Watch "Generating ER diagram from XML file." New topic

Generating ER diagram from XML file.

Suresh Appagundi
Ranch Hand

Joined: Sep 22, 2003
Posts: 44
Is there any tool for generating database ER diagram from XML file.

urgent please.

thanks in advance
K Riaz
Ranch Hand

Joined: Jan 08, 2005
Posts: 375
You can make one yourself using SVG (Scalable Vector Graphics), which can produce graphics directly from an XML file for viewing in a web browser with an SVG plugin. The SVG file is an XML file with a .svg extension (it is rendered by a browser into an SVG), so all you need to do is write a Java class which can produce <rect> tags (rectangles to represent an ER box) with data specific to that ER (which can be input or read in from another file/class), and output the XML into a .svg. I have been using it to create graphics on the fly with raw data.

You can also use an API from apache called Batik (google for it).
I agree. Here's the link:
subject: Generating ER diagram from XML file.
It's not a secret anymore!