Open a text editor or XML editor
Start with the XML declaration: ``
Define a root element
Add nested elements inside the root element
Use proper opening and closing tags
Ensure all tags are correctly nested
Save the file with the `.xml` extension
Validate the XML syntax if needed
Open the file in an XML viewer or browser to check it
