Hello, I tried this example but it didn't give any results. the Enumerations e1 and e2 remained empty. do I have to implement the methodes startElement, endElement ... ?? I would be easier if I could have a java class that actually parses a schema file. Thanks Martial
-----Original Message----- From: Andrew Fawcett [mailto:[EMAIL PROTECTED] Sent: lundi 9 juillet 2001 15:22 To: '[EMAIL PROTECTED]' Subject: RE: Schema parser Hi, // Parse XML Schema SchemaUnmarshaller schemaHandler = new SchemaUnmarshaller(); Parser parser = ParserFactory.makeParser(); parser.setDocumentHandler(schemaHandler); parser.parse("file:"+inputFile); Schema schema = schemaHandler.getSchema(); ... = schema.getComplexTypes() ... = schema.getElementDecls() It's that easy! ;-) -----Original Message----- From: Arnaud Blandin [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] Sent: 09 July 2001 14:17 To: [EMAIL PROTECTED] Subject: RE: Schema parser Hi, Actually there are no examples on how to use the Schema Parser. It is located under org.exolab.castor.xml.schema.reader.SchemaReader The API is quite straight-forward and you would not find any problem using it. If so just let me know. Arnaud > -----Original Message----- > From: Delahaye, Martial (CAP, CMF, COFRAMI) > [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] > Sent: Monday, July 09, 2001 1:50 PM > To: [EMAIL PROTECTED] > Subject: RE: Schema parser > > > Hi Arnaud, > Thanks for the advice, but actually which one of the examples > handles shema > parsing ? > The directories of examples are named : dsml, dtx, jdo, myapp, > oes, servlet, > SourceGenerator > I wasn't able to run all the examples. it appears to be a little bit > difficult. > Thanks > > Martial > > ps: any other help concerning Shema parsing would be welcomed. > > -----Original Message----- > From: Arnaud Blandin [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] > Sent: vendredi 6 juillet 2001 18:40 > To: [EMAIL PROTECTED] > Subject: RE: Schema parser > > > Hi Martial, > > you might want to take a look at Castor Schema Object Model > (www.castor.org). > It provides a full API to read a schema and write it back. > > Arnaud > > > -----Original Message----- > > From: Delahaye, Martial (CAP, CMF, COFRAMI) > > [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] > > Sent: Friday, July 06, 2001 4:25 PM > > To: [EMAIL PROTECTED] > > Subject: Schema parser > > > > > > Hi all, > > > > I would like to parse a schema in order to display the tags on > the screen > > and then be able to save them somewhere. Is there any way to do this ? > > Thanks > > > > Martial > > > > --------------------------------------------------------------------- > > 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] > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
