logo       

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

Re: validating xml and retrieval of xsd: msg#00026

Subject: Re: validating xml and retrieval of xsd
Paul Tomsic <ptomsic@xxxxxxxxx> wrote on 07/17/2006 08:40:20 AM:

> what's the best way to validate an xml file against an
> xsd, when you have to retrieve the xsd from the header
> attribs via http?
> 
> for instance, if given an xml that contains the 
> 
> "schemaLocation="http://www.example.com/myschema.xsd
> http://www.example.com/myschema.xsd";
> 
> the process would be (a) retrieve the xsd from the
> schemaLocation, and (b) ensure that the xml file
> validates against the retrieved schema
> 
> retrieval of the xsd is trivial, but not sure about
> the validation part
> 
> is there an example that someone could point me to?

There are several samples [1][2] which come with the binary distribution 
that show how to do that.

> thanks
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
> For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx

[1] http://xerces.apache.org/xerces2-j/samples-jaxp.html#SourceValidator
[2] http://xerces.apache.org/xerces2-j/samples-jaxp.html#ParserAPIUsage

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



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo