• Post Reply Bookmark Topic Watch Topic
  • New Topic

validate xml using xsd  RSS feed

 
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: 13078
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
Posts: 22185
38
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!