For an XML document has correct syntax, must comply with the rules explained above:
- Must have a single root or parent element, on which hang all the other elements.
- All items must have an opening tag and a closing tag.
- Items must be well nested.
- The attributes must be enclosed in single or double quotes.
Well-formed XML instance:
<?xml version = "1.0" encoding = "UTF-8"?>
<text>Remember our meeting</text>