Identify the errors in XML code.

Q10. Identify the errors in the following code:

<?XML version=”1.0”>

<Message date=”8/6/2011”>






<BODY> Welcome to Kogent Pvt.Ltd </Body>


Ans. The prolog part of the document contains the error. The word xml is a reserved keyword and cannot be written as XML (capital case).

XML code in a tabular format.

Q1. Represent the following XML code in a tabular format:

<?xml version=”1.0” encoding=”utf-8”?>

<?xml-stylesheet href=”Style.css” type=”text/css”?>


<Authors au_id=”648-92-1872”>




<Authors au_id=”238-95-7766”>




<Authors au_id=”427-17-2319”>



</Authors> Read More …