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 ...
|
|
|
|