O'Reilly logo

Visual Basic® .NET Database Programming by Rod Stephens

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required