Hmm, the problem that i'm seeing, though, if i use
that SourceValidator example and the "personal.xsd"
and "personal.xml" files, the result says something to
the effect of:

[Error] personal.xsd:2:56 Cannot find the declaration
of element 'xs:schema'

that doesn't seem right to me.

thoughts?

thanks in advance


--- Michael Glavassevich <[EMAIL PROTECTED]> wrote:

> Paul Tomsic <[EMAIL PROTECTED]> 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:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> [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: [EMAIL PROTECTED]
> E-mail: [EMAIL PROTECTED]
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to