This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to validate xml with xsd using JAXB 2.0  RSS feed

 
kc pant
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

i am doaing a vaidation of xml with a xsd i search in various site and i found to use of u.setValidating( true ); but when i am using it i am gettting error that this is not used in JAXB 2.0 so i want to know how to use validatation with JAXB2.0.


thanks in advance.


krish


 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pant,
You may have to use something like below.

Reference: http://jaxb.java.net/nonav/jaxb20-fcs/docs/api/index.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!