1

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

3
  • with a typical schema, "all possible" might exceed tens of thousands. Are you sure you want this? Commented Mar 17, 2010 at 18:36
  • yes, for testing purpose Commented Mar 17, 2010 at 18:45
  • 1
    It may easily exceed tens of quadrillions. Think about a single string of a dozen characters (26^12=1e17, if you only consider simple letters). Commented Mar 17, 2010 at 22:24

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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.

4 Comments

@Laxmikanth Samudrala Why do you need run-time generation? Won't static generation do?
it's a large file and some real data want to set while creating the XML
that doesn't answer why it needs to be at run-time
@Laxmikanth Samudrala then you can use Oxygen to do it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.