File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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