File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to write Custom validations on XSD validations

 
Dorairaj Clinapps
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have seen many posts with the same problem but there is no post pointed me to the exactly how to customize the XSD validations.

Can any one point me to attemt to writting custom validations instead of XML validator messages.

Validation message coming from XML validator 'The value '4' of element 'Status' is not valid.' is not meaningfull to the enduser.
I want give message like 'Status value should be either 0 or 1'. here message conveys the allowable characters such a way that user can correct the value but it is not possible through XML validator, XML validator only talks about the current tag value but not the allowable characters.
How can i move forward to fix this issue

Any Suggestions or pointing to Links or workarounds are greatly appreciated.


Thanks in Advance

Cheers
Dorairaj M
 
Dorairaj Clinapps
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any look into this. I think this is common problem to all, i am Wondering if this problem has no solution.

Thanks
Dorairaj
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic