XML code is well-formed or not.

Q2. Identify whether the following code is well-formed or not:

<?xml version=“1.0”

encoding=“UTF-8”

standalone=“yes”?>

Let&apos;s know the name, address, date of

birth, &amp; date of join of the employee

<Name> Petter Jones </Name>

<Address>house no 23, lane no 24,

Daryaganj, Delhi </Address>

<DOB>&lt;24/12/1987&gt;</DOB>

<DOJ>&lt;23/1/2010&gt;</DOJ>

</Employees>

Ans. The following code is not well formed because there is no root element in the starting.

Leave a Reply

Your email address will not be published. Required fields are marked *

79 Views
%d bloggers like this: