- 1). Right-click the XML file and select "Open With." Click the XML editor listed in the programs and click "Open." You can also edit XML in Windows Notepad.
- 2). Locate the XML tag you want to use for the attribute. You can use any data element within the list of records.
- 3). Type the XML attribute within the tag. For instance, the following code adds "type" to a customer tag:
<customer type="2">Joe Smith</customer> - 4). Save the file changes and open the XML file in a Web browser or a third-party XML editor.
previous post