Write an XML document describing a person: name, occupation, address and hobbies. Please do not use your own information, you can use fake data. Decide on suitable element names and nesting. Check your document for well-formedness.
Thank you for asking the question.
The XML code for describing the person entity is as follows:-
<person>
<name>
<firstname>DONALD</firstname>
<lastname>DUCK</lastname>
</name>
<occupation>comedian</occupation>
<address>
<landmark>University of Drama, Dept. of Acting</landmark>
<pbox>P.O. Box 720</pbox><street>comedy street</street>
<pcode>CD-00025</pcode>
<local>University of Drama</local>
</address>
<hobbies>
<hobby>dancing</hobby>
<hobby>laughing</hobby>
</hobbies>
</person>
The graph of XML tree is as follows :-
# Hope this will help you.
# Feel free to ask any doubt and once again thank you very much.
Get Answers For Free
Most questions answered within 1 hours.