File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Difference between valid XML doc and wellformed XML doc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Difference between valid XML doc and wellformed XML doc" Watch "Difference between valid XML doc and wellformed XML doc" New topic
Author

Difference between valid XML doc and wellformed XML doc

Divya Gehlot
Ranch Hand

Joined: Sep 10, 2006
Posts: 243
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%), SCDJWS(94%), next mission SCEA (but need to wait or that)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39537
    
  27
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).


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between valid XML doc and wellformed XML doc
 
Similar Threads
Which way to create a web service?
rpc and document
Difference between well formed and valid xml?
encoding style: literal vs encoded
XML and DTD