A syntactically correct document is called well formed XML document. A well formed XML document must follow the XML?s basic rules of syntax:
1) It must have a closing tag.
2) The closing tag must exactly match the open tag: XML is case sensitive.
3) All elements should be included within a single root tag.
4) Child elements must be closed within parent tag.