"Yuri de Wit" <[EMAIL PROTECTED]> wrote on 09/24/2006 05:29:36 PM:
> Though serializing my own schema model into xml would allow me to > reuse Xerces for validating my xml instances, I need to produce my > custom DOM instance with references to my schema model objects since > each xml instance Node has references to their respective NodeType's > in memory. That type reference is then used to modify the xml instance > in memory and dynamically validate the changes. If there was a way to > associate XSModel objects with my own schema model objects at parse > time I would be able to recreate the type references. > > The custom XML Schema model is EMF's XSD, which AFAIK was designed by > someone from the Xerces team and shares a similar design (not sure to > what extent). The two APIs had different design goals. See [1] for the details. > Maybe it wouldnt be to difficult to create a wrapper? When I said the validator is hardwired to use Xerces' XSModel implementation I really did mean the implementation and not just the interfaces. You would have to extend several impl classes and hack the XSD wrapping code into the subclasses. I think that would be very difficult assuming it's even possible. > thanks for your help! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] [1] http://marc.theaimsgroup.com/?l=xerces-j-user&m=108673334614791&w=2 Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
