Validating XML using XSD

Knoldus Blogs

Lately, I have been working on a use case where I was asked to parse XML for its validation and retrieve its values.

There are two different document type definitions that can be used with XML:

  • DTD – The original Document Type Definition
  • XMLSchema – An XML-based alternative to DTD

A document type definition defines the rules and the legal elements and attributes for an XML document. An XML document validated against a DTD or XSD is both “Well Formed” and “Valid”.

View original post 256 more words


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s