Reputation: 59
Can any one help me out with a java porogram to convert xsd file to xml file.
Thanks in advance.
Upvotes: 0
Views: 160
Reputation: 1
an XML Schema (xsd) is a XML file that follows the W3C specification of XML Schemas.
Upvotes: 0
Reputation: 629
It sounds to me like you want to 'generate' an instance of the XML document, based on the XML Schema.
JAXB (Java Architecture for XML Binding) may be a 'reasonable' way of doing this. By generating a Java Binding from an XSD (input file) it is possible to generate an XML representation of any XML element's defined in the schema (e.g. using the JAXB Marshaller).
Another similar thread may be found on StackOverflow itself: XML instance generation from XML schema (xsd)
Hope this helps! BR/Brian.
Upvotes: 1