Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any Java "API" to generate Sample XML from XSD?

Tags:

java

xml

xsd

As part of our application we need to develop a module that takes in an XSD schema and gives out a sample XML. The XSD schemas will be supplied during runtime. So is there any Java API out there that can do the job?

Searched this forum and found the following similar questions. But the discussions were around tools to generate sample XML from XSD. Could not find any reference to APIs.
how-to-generate-sample-xml-documents-from-their-dtd-or-xsd
tool-to-generate-xml-file-from-xsd-for-testing
xml-instance-generation-from-xml-schema-xsd

like image 424
Riyaz Avatar asked Jan 17 '11 07:01

Riyaz


1 Answers

i found java API to generate XML sample from XSD http://code.google.com/p/jlibs/wiki/XSInstance,

like image 170
nir Avatar answered Sep 22 '22 02:09

nir