wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Difference between well formed and valid xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Difference between well formed and valid xml?" Watch "Difference between well formed and valid xml?" New topic
Author

Difference between well formed and valid xml?

Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Hi,

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


give me an example for each...
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

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"


apigee, a better way to API!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between well formed and valid xml?
 
Similar Threads
Web Services : --> There is an error in XML document,
XSLT help - urgent Please
well-formed and valid XML difference
Difference between valid XML doc and wellformed XML doc
Problem in handling special characters using FOP generating pdf