1.

XML document structure can be divided in which two parts? What is meant by valid XML document (write three points)? Write the code to create anNameJobDepartmentCubicleSrishtiProgrammerEngineering5EAditiDesingerMarketing19T

Answer»

XML document structure can be divided into two parts as follows:

1. Well-formed XML document

2. Valid XML document

A valid XML document means to follow several terms, such as follows:

1. It is not only a well-formed document but as well as check error against a DTD.

2. It signifies that a document is well-formed.

3. It uses XML parser, XML validator for validation.

The XML code is

<?xml version = "1.0" encoding = "UTF-8"?>

<Employees>

<Employee>

<Name> Srishti </Name>

<Job> Programmer </Job>

<Department> Engineering </Department>

<Cubicle> 5E </Cubicle>

</Employee>

<Employee>

<Name> Aditi </Name>

<Job> Designer </Job>

<Department> Marketing </Department>

<Cubicle> 19T </Cubicle>

</Employee>

</Employees>



Discussion

No Comment Found