This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Difference between valid XML doc and wellformed XML doc
Divya Gehlot
Ranch Hand
Joined: Sep 10, 2006
Posts: 238
posted
0
Hi, Can any tell me whats the difference between valid XML document and well formed XML document. As far as I understand we can say XML document is valid if it follows XML format and well format if it follows the XML schema format if its using any namespaces. Am I in the right way? Please confirm and help me in clearing my doubt.
SCJP1.5(81%)<br />SCDJWS(94%)<br />next mission SCEA(but need to wait or that)
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35236
7
posted
0
It's the other way around. If it follows the XML spec then it's well-formed. It's valid if it validates according to some schema (which could be DTD, XML Schema or Relax-NG).