Multiple choice technology programming languages

What is the correct declation syntax for the version of an XML document?

  1. </xml version="1.0"/>

  2. <xml version="1.0">

  3. <?xml version="1.0"/?>

  4. none of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

XML declaration is a processing instruction that starts with and ends with ?>, making option C the correct syntax. This optional declaration specifies XML version and encoding at the document start.