Skip to content

ISRO Scientist/Engineer CSE 2015Web Technologies › Not yet assigned to a topic

ISRO Scientist/Engineer CSE 2015 PYQ: To declare the version of XML, the correct syntax is

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"/>
    Correct answer
  4. D
    <xml version='1.0'/>

Answer

(C) <?xml version="1.0"/>

Approach

Recall the XML declaration (prolog) syntax: it is a processing instruction that begins with <?xml and ends with ?>, and the version value must be enclosed in double quotes.

Reviewed by ISRO IQ Editorial Team.