Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between well formed and valid xml?

 
Thennam Pandian
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

please clarify the " Difference between well formed and valid xml"?


give me an example for each...
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A well formed xml is one that is structurally valid. There are many points that dictate the well formedness. Here is a checklist and this is an article on the same.

A valid xml is one that is well formed and additionally also follow a schema/dtd associated with the xml instance. An xml instance is valid against a schema/dtd, i.e. if you say "this xml instance is valid", it will not be a complete statement. You must say that "this xml instance is valid for this schema/dtd"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic