
You can create data files in the XML format
using a text editor like TextMate or TextEdit
(Mac) or NotePad or WordPad (Windows).
Be sure to save your XML file as plain text,
to avoid file formatting issues.
1 Open a text editor from your
programs or applications.
Note: You can use Notepad on Windows, and
TextEdit on OS X.
2 Click File.
3 Click New.
A new document opens.
Create an XML File
Create an
XML File
298
4 Type <?xml version=”1.0”
encoding=”UTF-8”?>.
5 Create an opening tag named
beatles by typing <beatles>.
6 Create a closing tag named
beatles by typing
</beatles>.
XML is composed of opening tags and closing tags, or tag pairs.
For example,
<address> is an ...