Is there a way in Java to create an XSD schema? I am trying to create a new schema .xsd
file according to the number of attributes and their type given to me as input. Is there a package that can help me to do this job?
JAXB Schemagen can generate XSD Schema from Java Classes.
try jlibs library. you can see you to create how to create xml schema using jlibs.xml.xsd.XSDocument
at the end of the wiki
Use the eclipse's xsd api has the ability to create, parse and update a xsd. Refer to their documentation for how-to details.
With Apache XmlSchema you can construct XML schemata in-memory and convert them to string.
In my project I've used the JAXB compiler to generate an object model "home made API" taking the XML schema as XJC input. You can find the file here: http://www.w3.org/2001/XMLSchema.xsd
Another solution is to use the Eclipse project MDT XSD (http://www.eclipse.org/modeling/mdt/?project=xsd#xsd) but I found it not well documented and easily integratable in a Maven build.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With