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
2010-03-17 18:49:03
Java Framework like XMLBeans ?
Laxmikanth Samudrala
2010-03-17 18:51:52
@Laxmikanth Samudrala Why do you need run-time generation? Won't static generation do?
Bozho
2010-03-17 19:17:02
it's a large file and some real data want to set while creating the XML
Laxmikanth Samudrala
2010-03-17 19:23:49
that doesn't answer why it needs to be at run-time
Bozho
2010-03-17 19:25:17
yes, it is one time (static) generation only
Laxmikanth Samudrala
2010-03-17 20:40:42
@Laxmikanth Samudrala then you can use Oxygen to do it
Bozho
2010-03-17 20:42:20
+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
2010-03-18 21:05:13