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.