Home »
MCQs »
XML MCQs
Which is the correct XML declaration?
8. Which is the correct XML declaration?
- <xml version="1.0" encoding="UTF-8"/>
- <xml version="1.0" encoding="UTF-8"></xml>
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml type="document" version="1.0" encoding="UTF-8"?>
Answer: C) <?xml version="1.0" encoding="UTF-8"?>
Explanation:
The correct XML declaration is:
<?xml version="1.0" encoding="UTF-8"?>