File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between well formed and valid xml?

 
Thennam Pandian
Ranch Hand
Posts: 163
  • 0
  • 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
  • 0
  • 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"
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic