Ars
Ars

Reputation: 59

xml and java conversion

Can any one help me out with a java porogram to convert xsd file to xml file.

Thanks in advance.

Upvotes: 0

Views: 160

Answers (5)

Carlos C.
Carlos C.

Reputation: 1

an XML Schema (xsd) is a XML file that follows the W3C specification of XML Schemas.

Upvotes: 0

gto406
gto406

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

Manish
Manish

Reputation: 11

XSD is a description of a type of XML document.

Upvotes: 0

Jigar Joshi
Jigar Joshi

Reputation: 240996

XSD is an XML only, XSD specifies the design of XML .

Upvotes: 2

Darin Dimitrov
Darin Dimitrov

Reputation: 1039498

A XSD file is already an XML file.

Upvotes: 2

Related Questions