Question 71

To declare the version of XML. the correct syntax is :

  1. A</xml version = '1.0'/>
  2. B<?xml version = "1.0"/>
  3. C<*xml version = '1.0'/>
  4. D<?xml version = 1.0"/>
Show answerHide answer

Correct answer: (B) <?xml version = "1.0"/>

Explanation

The XML declaration is a processing instruction: <?xml version="1.0"?>. It begins with <?xml and the version value is quoted. Option B is the closest to this form.

From DSSSB TGT Computer Science Practice Set 2

This is question 71 of DSSSB TGT Computer Science Practice Set 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.