• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validate xml using xsd

 
kavitha vasu
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

am having one xml file and xsd for that file .


now i want to test whether the created xsd is correct one for the XML file or not.


How can i do in java?

or oracle jdeveloper
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the javax.xml.validation package - the JavaDocs have enough information for you to write a program.

Bill
 
Paul Clapham
Sheriff
Pie
Posts: 20971
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And also, the Ranch has an XML FAQ page which includes HowToValidateXmlAgainstAnySchema.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic