Hello Michael, devs, Here are the steps I have followed inorder to develop the code after a discussion with Michael.
1. The important modifications are done in the newSchema(Source []sources) methods in the XMLSchemaFactory.java class. 2. Inorder to validate shcemas against multiple namespaces, a new method has been introduced and invoked just before the loadGrammar() method. 3. After passing the XMLInputSources in to the new method which is named as generateDummySchema(XMLInputSource[] xmlInputSources) it will return a top-level generated schema. 4. It glues all the the sources together and can contain a tree of schemas which can be traversed recursively by Xerces. 5. After schema generation a new entity resolver to resolve the sources which I have generated in the generateDummySchema method (this has to be implemented). 6. I have to keep a cache of the sources that were passed in and any include level schemas that were generated, the resolver would return these documents when asked by Xerces. The caching mechanism is done through StringBuffers. Hope to update you more in next few days. Thanks. On Thu, Jun 21, 2012 at 7:48 PM, Michael Glavassevich <[email protected]>wrote: > Hi Shakya, > > Thanks for the update. Looking forward to hearing more about how things > are progressing. > > Michael Glavassevich > XML Technologies and WAS Development > IBM Toronto Lab > E-mail: [email protected] > E-mail: [email protected] > > Shakya Wijerama <[email protected]> wrote on 21/06/2012 12:22:23 > AM: > > > Hi Devs, > > > > I have been working on "Cannot validate against multiple XML schema > > within the same namespace" and studied thoroughly about the related > > areas of the project in the Xerces code and > > learnt about Schema generation. And I have been implementing the > > design as discussed with Michael and will give an update about the > > implementation along with the code within next few days. > > > > -- > > > > Regards, > > > > Shakya Wijerama > > > > Senior Student, > > Faculty of Applied Sciences, > > Sabaragamuwa University of Sri Lanka. > -- Regards, *Shakya Wijerama* Senior Student, Faculty of Applied Sciences, Sabaragamuwa University of Sri Lanka.
