Editing XML Files

Editing XML files is fairly easy. Their simple format makes them easy enough to build in any text editor, such as WordPad. Although building XML files using WordPad isn’t hard, Visual Basic provides some tools that make editing XML files even easier.

To add an XML file to a Visual Basic project, select the Project menu’s Add New Item command. Select the XML File tool and click OK. Figure 7.1 shows Visual Basic’s XML editor as it initially appears in XML mode. The XML declaration on the first line is added automatically by Visual Basic and you should not change it. You can type the rest of the XML data directly into the file.

Figure 7.1. Visual Basic’s XML editor lets you edit XML code directly.

The XML editor color codes ...

Get Visual Basic® .NET Database Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.