Create an XML Document from scratch
This example shows how to create an XML document as shown below
<?xml version="1.0" ?>
<root>
<product name="Geeks for Geeks">
<product2 name="Geeks for Geeks"/>
</product>
</root>