In: Computer Science
Please
Write an XML document describing a person: name, occupation, address, and hobbies. Decide on suitable element names and nesting. Check your document for well-formedness. And draw a tree that represents the XML document you created.
Thanks
<?xml version="1.0" encoding="UTF-8"?>
<person>
<name>
<first_name>Alan</first_name>
<last_name>wilson</last_name>
</name>
<occupation>assistant professor</occupation>
<address>
<street>2552 Raintree Boulevard</street>
<city>Indianapolis</city>
<post_code>z-46225</post_code>
<state>Indiana</state>
</address>
<hobbies>
<hobby1>cooking</hobby1>
<hobby2>reading</hobby2>
<hobby3>singing</hobby3>
</hobbies>
</person>
The following tree is created with the help of SmartArt graphics in MS-Word.