How to Include an Ampersand in an XML Tag Name
- 1). Right-click the XML file you want to edit and select "Open With." Double-click your XML editor in the list of programs. You can also use Notepad to edit XML, if you have no specialized XML editor software.
- 2). Scroll down to the tag you want to use with an ampersand. Replace the current ampersand in the XML name with the following code:
& - 3). Save the file and open it in a Web browser or an XML editor to see the changes. Instead of causing syntax errors, the new changes let you view tags with ampersand characters.