I am aware of how to set up the XSD or validation in standalone Xerces. I could use some help in figuring out how to tie that parsing into an Xindice-based solution. Specifically, how do I go about changing the XML parsing used by Xindice's server so that parsing will use a validating parser that I desire? I assume that I must use some sort of customized parser factory implementation and tie that factory into the server so my factory is used instead of the default. Any examples available that demonstrate this would be greatly appreciated.
In addition to any programatic access to enforcing validation, it seems likely that many environments would want to set up per-collection schema or DTD validation through some kind of administrator's interface. In many of the applications I would consider using Xindice, I wouldn't want to rely on all applications to be completely "well-behaved". - Tim > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Murray Altheim > Sent: Thursday, January 03, 2002 1:01 AM > To: [EMAIL PROTECTED] > Subject: Re: XSD or DTD validation? > > > "Timothy M. Dean" wrote: > > > > I was also curious about the same thing. I would be willing to > > contribute to this effort if necessary. Has anyone else given much > > thought to this idea? > > To reiterate my answer to Jerry, both XSD and DTD validation > are provided by the Xerces 2 parser that is used by Xindice, > so it comes down to how you set up the XML parser used to > provide content to Xindice. If you have any question on how > to set up such a parser, check the 'samples' directory of the > Xerces 2 distribution, which shows how to do this for both > SAX and DOM parsers. It's really pretty simple. If you need > catalog-style entity resolution, you can get Norm Walsh's > catalog resolution code at nwalsh.com. > > Murray > > .............................................................. > ............. > Murray Altheim > <mailto:murray.altheim@sun.com> > XML Technology Center, > Java and XML Software > Sun Microsystems, Inc., MS MPK17-102, 1601 Willow Rd., Menlo > Park, CA 94025 > > Rally against the evils of iceburg lettuce! > Grab a kitchen knife and join the Balsamic Jihad! >
