Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » Creating a sample XML instance from a XSD Schema
Creating a sample XML instance from a XSD Schema [message #16893] Wed, 02 April 2003 14:26 Go to next message
Eclipse UserFriend
Hello,

In my ongoing project, one of my challenges is to create a sample XML from
the XSD Schema and populate the XML document. Lets say I have saved the
XSD Schema in a .xsd file, are there any API which would let me create a
sample XML Document out of it. I found a xmlgen.jar library provided by
SUN (SUN XML GENERATOR) but its quite useless when applied to the XSD
models. Any ideas or thoughts would be much appreciated..?

thanks for your help

kaunteya
Re: Creating a sample XML instance from a XSD Schema [message #16922 is a reply to message #16893] Wed, 02 April 2003 14:53 Go to previous message
Eclipse UserFriend
kaunteya bhattacharya wrote:

On this note.. I was curious if it would be feasible(or smart) to use JAXB
to do this for you. What if I convert the XML Schemas into java objects,
and then instantiate these java classes and populate them?
Further, I can serialize them into a XML document.
Does that sound feasible??



> Hello,

> In my ongoing project, one of my challenges is to create a sample XML from
> the XSD Schema and populate the XML document. Lets say I have saved the
> XSD Schema in a .xsd file, are there any API which would let me create a
> sample XML Document out of it. I found a xmlgen.jar library provided by
> SUN (SUN XML GENERATOR) but its quite useless when applied to the XSD
> models. Any ideas or thoughts would be much appreciated..?

> thanks for your help

> kaunteya
Re: Creating a sample XML instance from a XSD Schema [message #567077 is a reply to message #16893] Wed, 02 April 2003 14:53 Go to previous message
Eclipse UserFriend
kaunteya bhattacharya wrote:

On this note.. I was curious if it would be feasible(or smart) to use JAXB
to do this for you. What if I convert the XML Schemas into java objects,
and then instantiate these java classes and populate them?
Further, I can serialize them into a XML document.
Does that sound feasible??



> Hello,

> In my ongoing project, one of my challenges is to create a sample XML from
> the XSD Schema and populate the XML document. Lets say I have saved the
> XSD Schema in a .xsd file, are there any API which would let me create a
> sample XML Document out of it. I found a xmlgen.jar library provided by
> SUN (SUN XML GENERATOR) but its quite useless when applied to the XSD
> models. Any ideas or thoughts would be much appreciated..?

> thanks for your help

> kaunteya
Previous Topic:Creating a sample XML instance from a XSD Schema
Next Topic:Null Pointer Excp when calling validate()
Goto Forum:
  


Current Time: Sun Jun 01 00:03:20 EDT 2025

Powered by FUDForum. Page generated in 0.03326 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top