Well Formed XML
To create a well formed XML data
- Enter XML declaration
<?xml version='1.0'?>
means that the file has xml version 1.0 marked up data
- Include a top level element that will include all the other elements.
<customers>
- Continue with the remaining contents. Open and close all tags with correct nesting.
- Close the file with the ending tag for the top level element.
Sample well formed XML file:
<?xml version='1.0'?>
<customers>
<customer ID="Customer1" Index="1">
<company_name>ABC Technologies</company_name>
<first-name>John</first-name>
<last-name>Doe</last-name>
<method_of_payment>Visa</method_of_payment>
</customer>
<customers>