aspose file tools*
The moose likes XML and Related Technologies and the fly likes How to write Custom validations on XSD validations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to write Custom validations on XSD validations" Watch "How to write Custom validations on XSD validations" New topic
Author

How to write Custom validations on XSD validations

Dorairaj Clinapps
Greenhorn

Joined: Apr 23, 2013
Posts: 4
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

Joined: Apr 23, 2013
Posts: 4
Can any look into this. I think this is common problem to all, i am Wondering if this problem has no solution.

Thanks
Dorairaj
 
 
subject: How to write Custom validations on XSD validations