In an HTML document there are HTML opening and closing tags: <html> </html>
. Is this the same for XML?
For XML:
<?xml version="1.0"?>
does it need </xml>
?
I read here :https://www.w3schools.com/xml/xml_syntax.asp That the "The XML prolog does not have a closing tag". It seems confusing if and opening and closing tag are required for HTML ,but not XML. How does a machine know its at the end of the XML file?