Analyst Integration Question:
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.
Previous Question | Next Question |
How do you get the last digit of an integer? | What is the Liskov substitution principle? |