What is the difference between well-formeches and validity of an XML document?
Answers
Answered by
36
Answer:
Valid XML is XML that succeeds validation against a DTD. Well formed XML is XML that has all tags closed in the proper order and, if it has a declaration, it has it first thing in the file with the proper attributes. In other words, validity refers to semantics, well-formedness refers to syntax.
Answered by
2
Answer:
The difference between well-formed and validity XML is simple: Valid XML has a DTD associated with it and has been verified against all the rules contained in the DTD in addition to being well-formed. Merely well-formed XML, on the other hand, is not necessarily valid, although it may be.
HERE IS YOUR ANSWER
HOPE IT IS HELPFUL FOR YOU
THANK YOU
Similar questions