InterviewSolution
| 1. |
Can You Describe The Difference Between Valid And Well-formed Xml? |
|
Answer» A well-formed XML is the one which has ROOT element and all TAGS are closed PROPERLY, attributes are defined properly, their value is also quoted properly. On other hand, a valid XML is the one which can be validated against a XSD file or schema. So it's possible for a XML to be well-formed but not valid, because they CONTAIN tags which MAY not be allowed by their schema. A well-formed XML is the one which has root element and all tags are closed properly, attributes are defined properly, their value is also quoted properly. On other hand, a valid XML is the one which can be validated against a XSD file or schema. So it's possible for a XML to be well-formed but not valid, because they contain tags which may not be allowed by their schema. |
|