Identify the errors in XML code.

Q10. Identify the errors in the following code:

<?XML version=”1.0”>

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

<SenderName>Harmeet</SenderName>

<Receivers>

<ReceiversName>Raju</ReceiversName>

<ReceiversName>Reena</ReceiversName>

<Receivers>

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

</Message>

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”?>

<AuthorsList>

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

<au_lname>Alam</au_lname>

<au_fname>Mehboob</au_fname>

</Authors>

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

<au_lname>Kumar</au_lname>

<au_fname>Vijay</au_fname>

</Authors>

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

<au_lname>Gill</au_lname>

<au_fname>Dipika</au_fname>

</Authors> Read More …