To declare the version of XML, the correct syntax is
2015
To declare the version of XML, the correct syntax is
- A.
<?xml version="1.0"?>
- B.
<*xml version="1.0">
- C.
<*xml version=="1.0">
- 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.