aspose file tools*
The moose likes Beginning Java and the fly likes problem in applying restriction on xml attribute jaxb i.e. unable to do validation for attributes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "problem in applying restriction on xml attribute jaxb i.e. unable to do validation for attributes" Watch "problem in applying restriction on xml attribute jaxb i.e. unable to do validation for attributes" New topic
Author

problem in applying restriction on xml attribute jaxb i.e. unable to do validation for attributes

ganesh b pol
Greenhorn

Joined: Aug 20, 2008
Posts: 14
my xsd file is



here i have applied restriction on port attribute

my xml file is



first element is with invalid port number i.e. 90009

when i am parsing this xml file with JAXB
i am unable to get any error
code for parsing XML file is




 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in applying restriction on xml attribute jaxb i.e. unable to do validation for attributes
 
Similar Threads
unble to validate xml against schema
[XML Schema] same elementname, different attributes
tag-value should be unique ...
problem in applying unique constraint on xml attribute through xsd unique
XML valiadation using schema