Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
ganesh b pol
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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




 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic