Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Re: Custom error messages when XSD validation fails?

Thread Tools

Re: Custom error messages when XSD validation fails?

Posts: n/a
On Apr 21, 11:48 am, Martin Honnen <(E-Mail Removed)> wrote:
> Artie wrote:
> > When the XML fails to validate against its XSD element, I want, say,
> > error code 1000 to be returned from the validator - can this be done
> > easily?

> > (I'm thinking along the lines of having an element like
> > <xs:customErrorCode = 1000> along side each restriction.)

> I don't think the schema language has any construct to define custom
> error messages. Nor have I have heard that a particular schema validator
> supports that. You might want to ask on a mailing list or forum or
> newsgroup for the particular schema validator you use or want to use.
> --
> Martin Honnen

Thanks for your reply Martin.

I was hoping for something generic rather than validator-specific, but
I'll try in a Microsoft group as well.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Membership Provider - Custom Error Messages Brett Ossman ASP .Net Security 0 03-11-2009 09:33 PM
Custom error messages when XSD validation fails? Artie XML 1 04-21-2008 10:48 AM
XSD validation with custom namespaces ? Java 2 12-29-2005 04:14 AM
Validation of XSD (XML Schema) against XSD Rushi XML 1 12-09-2005 08:12 AM
XML + XSD: Is it possible to get all errors against the XSD? Markus Java 1 11-22-2005 02:53 PM