Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validating Schema.

 
Skanda Raman
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please advise the best approach to validate the XML schema. As per my knowledge, XML can be validated against XSD rules using Xerces parser.
Also, let me know like similar to XML schema structure do we have a schema for CSV format and if yes does java provides a way to validate it.
 
Mansukhdeep Thind
Ranch Hand
Posts: 1158
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eshwar Prasad wrote:Please advise the best approach to validate the XML schema. As per my knowledge, XML can be validated against XSD rules using Xerces parser.


That is correct. XSD/DTD is the dictionary or the standard against which you validate your XML. Earlier, DTDs were used for the same. Read this for the differences between the two.

Eshwar Prasad wrote:Also, let me know like similar to XML schema structure do we have a schema for CSV format and if yes does java provides a way to validate it.


I stumbled upon this, a free tool for creating CSV schema with user defined rules. Not sure if Oracle Java itself provides a separate package for this purpose. Apache though has a library. Check this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic