Re: online XML Schema validation service, python bindings

Michael Kay <[email protected]> Sun, 24 May 2020 12:01:37 +0100
Newsgroups gmane.text.xml.schema.devel
Message-ID <[email protected]>
--Apple-Mail=_2A4573C7-5973-4DD4-BB45-99B1838A1BA9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

A couple of ideas to think about:

(a) To allow schema validation to be invoked over HTTP, it would be a =
good idea to define a standard XML vocabulary for the validation report. =
I wouldn't expect two validators to produce exactly the same errors, but =
the information in the errors (e.g. line number, constraint reference, =
etc) could be delivered in the same way.

(b) Also, I expect that in many cases you would want to validate many =
input documents against the same schema. That means the online service =
should have some kind of persistent store of registered schemas that can =
be invoked by name, rather than uploading the schema on each request.

Michael Kay
Saxonica

> On 24 May 2020, at 11:21, Mukul Gandhi <[email protected]> wrote:
>=20
> Hi all,
>     Sometime ago, I had informed this list that I've hosted an 'online =
XML Schema validation service' here: =
http://www.softwarebytes.org/xmlvalidation/ =
<http://www.softwarebytes.org/xmlvalidation/>. That's available and =
works as before.
>=20
> I could get some time, to develop python examples that call the above =
mentioned 'online XML Schema validation service'. This effectively means =
that, we can do XML Schema 1.0 and 1.1 validations from python programs =
(the XML Schema validations would be performed by Xerces-J at backend) =
by making remote invocations to the above mentioned 'online XML Schema =
validation service'. The above mentioned link, now has details about =
this work, and the python programs that I've talked about in this mail =
are available for download from the above link.
>=20
> I imagine that, this work could be extended to for e.g C# and couple =
of other programming languages as well. This could be done fairly =
easily, by looking at the python programs that I've talked about in this =
mail.
>=20
>=20
>=20
> --=20
> Regards,
> Mukul Gandhi


--Apple-Mail=_2A4573C7-5973-4DD4-BB45-99B1838A1BA9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D"">A couple of ideas to think about:</div><div class=3D""><br =
class=3D""></div>(a) To allow schema validation to be invoked over HTTP, =
it would be a good idea to define a standard XML vocabulary for the =
validation report. I wouldn't expect two validators to produce exactly =
the same errors, but the information in the errors (e.g. line number, =
constraint reference, etc) could be delivered in the same way.<div =
class=3D""><br class=3D""></div><div class=3D"">(b) Also, I expect that =
in many cases you would want to validate many input documents against =
the same schema. That means the online service should have some kind of =
persistent store of registered schemas that can be invoked by name, =
rather than uploading the schema on each request.<br class=3D""><div =
class=3D""><br class=3D""></div><div class=3D"">Michael Kay</div><div =
class=3D"">Saxonica<br class=3D""><div><br class=3D""><blockquote =
type=3D"cite" class=3D""><div class=3D"">On 24 May 2020, at 11:21, Mukul =
Gandhi &lt;<a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D""><div dir=3D"ltr" class=3D""><div dir=3D"ltr" class=3D"">Hi =
all,<div class=3D"">&nbsp; &nbsp; Sometime ago, I had informed this list =
that I've hosted an 'online XML Schema validation service' here:&nbsp;<a =
href=3D"http://www.softwarebytes.org/xmlvalidation/" =
class=3D"">http://www.softwarebytes.org/xmlvalidation/</a>. That's =
available and works as before.</div><div class=3D""><br =
class=3D""></div><div class=3D"">I could get some time, to develop =
python examples that call the above mentioned 'online XML Schema =
validation service'. This effectively means that, we can do XML Schema =
1.0 and 1.1 validations from python programs (the XML Schema validations =
would be performed by Xerces-J at backend) by making remote invocations =
to the above mentioned&nbsp;'online XML Schema validation service'. The =
above mentioned link, now has details about this work, and the python =
programs that I've talked about in this mail are available for download =
from the above link.</div><div class=3D""><br class=3D""></div><div =
class=3D"">I imagine that, this work could be extended to for e.g C# and =
couple of other programming languages as well. This could be done fairly =
easily, by looking at the python programs that I've talked about in this =
mail.</div><div class=3D""><br class=3D""></div><div class=3D""><br =
clear=3D"all" class=3D""><div class=3D""><br class=3D""></div>-- <br =
class=3D""><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr" =
class=3D""><div class=3D""><div dir=3D"ltr" class=3D""><div dir=3D"ltr" =
class=3D""><div dir=3D"ltr" class=3D""><div class=3D"">Regards,<br =
class=3D"">Mukul =
Gandhi</div></div></div></div></div></div></div></div></div></div></div>
</div></blockquote></div><br class=3D""></div></div></body></html>=

--Apple-Mail=_2A4573C7-5973-4DD4-BB45-99B1838A1BA9--