Hi Michael, Thanks for reply. This works fine, and is really nice. I have another question.
Can we convert XSModel into the JAXP object, javax.xml.validation.Schema? On Fri, May 15, 2009 at 5:58 PM, Michael Glavassevich <[email protected]> wrote: > I wasn't implying that you could cast this directly. :-) > > The array type is Grammar however each of the values inside will be an > instance of XSGrammar. So you need to create a new XSGrammar array and copy > each of the items: > > XSGrammar [] xsGrammars = new XSGrammar[grammars.length]; > System.arraycopy(grammars, 0, xsGrammars, 0, grammars.length); > > and then things should work fine from there. -- Regards, Mukul Gandhi --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
