logo       

Re: Validating a xsd schema file: msg#00044

Subject: Re: Validating a xsd schema file
Hi Simon,

The only benefit I could see to doing both is that you'll get PSVI from the
validation against XMLSchema.xsd which your application may want to use.
Otherwise it's just doing redundant work.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@xxxxxxxxxx
E-mail: mrglavas@xxxxxxxxxx

"Simon Bøggild" <simon.hjorth@xxxxxxxxx> wrote on 11/16/2007 04:51:50 AM:

> Thank you for your input.
> Would it be enough to simply use SchemaFactory to check if the schema
> is valid? Or is validation against XMLSchema.xsd still necessary?
>
> Thanks,
> Simon
>
> On Nov 16, 2007 5:05 AM, Michael Glavassevich <mrglavas@xxxxxxxxxx>
wrote:
> > Validating your schema against the schema for schemas (XMLSchema.xsd)
isn't
> > sufficient for determining whether your schema is valid. There are many
> > constraints which cannot be expressed in the language, for example the
> > complex rules for particle derivation [1] which apply to complex type
> > restriction/extension. Xerces checks these constraints among many
others
> > when it loads/processes a schema. You could use the SchemaFactory [2]
from
> > JAXP 1.3 for that purpose.
> >
> > Thanks.
> >
> > [1] http://www.w3.org/TR/xmlschema-1/#coss-particle
> > [2]
> > http://xerces.apache.org/xerces2-
> j/javadocs/api/javax/xml/validation/SchemaFactory.html
> >
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: mrglavas@xxxxxxxxxx
> > E-mail: mrglavas@xxxxxxxxxx
> >
> > Francesco Lazzarino <flaz@xxxxxxx> wrote on 11/15/2007 11:49:34 AM:
> >
> >
> > > i'm not sure how SQC works but XMLSchema is XML and thus it can be
> > > validated as any other xml file.
> > >
> > > i believe (i'm a little rusty) that XMLSchemas are instances of
> > > XMLSchema.xsd and that uses XMLSchema.dtd
> > >
> > > that assumes you want to validate it for correctness according to
> > > XMLSchema.xsd and XMLSchema.dtd.
> > >
> > > On Thu, Nov 15, 2007 at 01:15:40PM +0100, Simon Bøggild wrote:
> > > > Hi,
> > > >
> > > > I would like to know if it's possible (and how) to use Xerces to
> > > > perform Schema validation in the same manner as SQC (Schema Quality
> > > > Checker from IBM). That is, to validate the correctness of the
schema
> > > > file itself without looking at any instances of it.
> > > >
> > > > Regards,
> > > > Simon
> > > >
> > > >
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
> > > > For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx
> > > >
> > > >
> > >
> > > --
> > > Francesco Lazzarino
> > > Digital Archive Programmer
> > > Florida Center for Library Automation
> > > http://daitss.fcla.edu
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
> > > For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
> > For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
> For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe