This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between valid XML doc and wellformed XML doc

 
Divya Gehlot
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic