• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Validating Schema.

 
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1164
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic