To declare the version of XML, the correct syntax is

2015

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"

Attempted by 30 students.

Show answer & explanation

Correct answer: A

The correct syntax for declaring the XML version is <?xml version="1.0"?>. This processing instruction must start with <?xml and end with ?>. Attributes within the declaration use a single equals sign (=) to assign values, not double equals signs. Wildcards are not permitted in the version attribute.

Explore the full course: Isro