Correct me if I am wrong here: To create an instance XML document from a schema, you need a lot of controlling parameters (refer to IBM XMLGenerator, which creates instances from DTD). I guess you probably have to decide the your own logic of the generation process.
On the other hand, since Xerces does support Schema validation, it surely parse the Schema somewhere. It looks to me that there is no open API for such a Schema parser and there is no standard data structure for representing Schema. I am wondering whether the Xerces development group can make an effort to provide such an API and documentation? Anyway, Daniel, if you happen to know any other solution, would you please let me know ([EMAIL PROTECTED])? Thanks! Chang > -----Original Message----- > From: Daniel Pfuhl [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 19, 2001 2:50 AM > To: Xerces-List > Subject: Create Instance from Schema using Xerces > > > Hi > > is there anybody outside who has > already done this?? > I would like to parse a schema and > create an instance of this schema. > Afterwards I would like to parse > this instance for validity. > > Can someone tell me if this is in > general possible with this version > of Xerces? Don't hit me because I'm > very new to Xerces itself. I only > used it in Cocoon for serving XML- > based Websites. > > But now I want to go deeper into > it. So it would be very kind of > you helping me with some > trend-setting (for my foggy > thoughts only)information using > Xerces. > > BTW: I decided to use DOM for my > final goal. Is this the right > decision or should I use SAX? > > Thanx for pointing me in the right > direction.... > > daniel > > ---------------------------------- > Daniel Pfuhl > mailto:[EMAIL PROTECTED] > ______________________________________________________________ > _________________ > Alles unter einem Dach: Informationen, Fun, E-Mails. Bei > WEB.DE: http://web.de > Die gro�e Welt der Kommunikation: E-Mail, Fax, SMS, WAP: http://freemail.web.de --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
