• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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




 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!