Question 1: Consider the following code of an XML document and identify where its standard code rules are being applied. You are required to write the identified tag along with its related rule side
<?xml version="1.0"?>
<PlanetsList>
<Planet Name="Mercury"> <Distance>36 million miles</Distance>
<Moons>None</Moons>
<DayLength> 176 days</DayLength> </Planet>
<Planet Name="Venus"> <Distance>67 million miles</Distance>
<Moons>None</Moons>
<DayLength>1 17 days</DayLength> </Planet>
<Planet Name="Earth"> <Distance>93 million miles</Distance>
<Moons>One</Moons>
<DayLength>24 Hours</DayLength> </Planet>
</PlanetsList> <BR/>First line of the code is a declaration that it is an XML document (version 1). Second and last lines of the code are called root element tags. We enclose other elements within the root element tags. We assign a name to the root element that best describes the purpose of our file. Other elements are called child elements. Thus, planet is a child element of planet list. Further, each property of a planet is the child element of the planet element. So, distance, moons and day length are the child elements of planet element. Name is the attribute of the planet element. Names of child elements can be different between two organizations, which can make the sharing of information difficult. For instance, some may describe the property of a planet as Day and others may use the word Day length for that purpose.