XML validation against XSD schema

David Bruant bruant.d at gmail.com
Fri Jun 8 05:56:31 PDT 2012


Le 08/06/2012 13:53, Christian Mayer a écrit :
> Thanks for the quick answer!
>
> Am 07.06.2012 20:28, schrieb Brendan Eich:
>> This is not a candidate for the core language standard, ECMA-262.
> OK. If ECMA-262 is only about core and not the (default) library -
> where could I ask then? Which body takes care about the libaray?
My guess would be the WHATWG [1] or public web apps [2].

>> This is where you want a JS library. There are many choices,
>> although I'm no XML expert:
>>
>> https://www.google.com/search?q=XSD+validation+in+JS&ie=utf-8&oe=utf-8
> Even there it looks more and more like a big, open toppic that many
> stumbled upon and noone could solve.
I came to the same conclusion when I had that same problem a couple of 
years ago. I'm not very surprised it hasn't changed.

> The best solution so far seems to
> validate on the server and give that result back via AJAX, which is
> quite disappointing...
>
> Thanks,
> Chris
>
> PS: Of course you could write an validator in JavaScript and include
> that as an external library. But I fear that would create a huge
> overhead
XSD is indeed a complicated spec and would require quite some code :-)

> especialls as I assume that browsers usually have a
> validator already included which could be made visible to the JS
> interpreter
Is it the case in Firefox or Chrome? I would guess not, but I don't know 
them that much.

> The MSXML is already going that way - but it's not cross
> platform.
Indeed. Web technologies have not taken the XML turn a lot of people 
expected 5-10 years ago.

David

[1] http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org
[2] http://lists.w3.org/Archives/Public/public-webapps/


More information about the es-discuss mailing list