tags:

views:

289

answers:

2

which Java XML framework would be the best to create all possible XML files based on specified XSD file.

A: 

Oxygen is a tool that can generate xml files from xsd.

XMLBeans tools seem to offer this, too.

And something called "trang" appears to be able to do this.

Bozho
Java Framework like XMLBeans ?
Laxmikanth Samudrala
@Laxmikanth Samudrala Why do you need run-time generation? Won't static generation do?
Bozho
it's a large file and some real data want to set while creating the XML
Laxmikanth Samudrala
that doesn't answer why it needs to be at run-time
Bozho
yes, it is one time (static) generation only
Laxmikanth Samudrala
@Laxmikanth Samudrala then you can use Oxygen to do it
Bozho
+1  A: 

Eclipse has tools for doing this and is probably free.

Once you've got the right version of Eclipse, open the existing schema file for editing (or create a new one: select File -> New... Other ... XML / XML Schema ). When you're ready to generate a test XML file, locate the file in the Package Explorer (the navigator view, usually on the left side), right click on it, and select Generate/XML File.

HonorGod