> Radek Wisniewski Wrote: > I'v tried to parse XML Schema with some classes comming form Xercess > 2.0.0_beta3, but i can't find working example how to do it.
Have a look at the samples package , there are good number of examples that shows how to parse XML Schema. > In ...impl.xs.traversers.XSDHandler is main method, this method does'nt > work and it's the only simple example. Infact that is to be removed. it is only for testing purpose, u must have noticed the comment over it. > The second example is XMLSchemaValidator class, I'v spend 15 hours to > analyse this class and to get my example working but all what I'v got was > the same error message like by XSDHandler.main() method. I had a quick look at ur class 'SchemaParser' ,couple of things. StandardParserConfiguration is for DTD only, DTDXSParserConfiguration in the same package works for both DTD and Schema. As of right now DTDXS.. is the defalut configuration for different parser (SAX , DOM etc..) instances. U might want to have a look at Samples package and XNI documentation to be more familiar on this part. I saw u using , parseSchema() this is INCORRECT way of parsing schema. That method is only for *internal* purpose and gets called by SchemaValidator, ur results wont be correct if u try to use it directly. ideally this method should not be public, may be it will change in next beta release. -- Neeraj Bajaj Sun Microsystems, inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
