O'Reilly logo

Microsoft®C# Programming for the absolute beginner by Andy Harris

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

Writing New Values to an XML Document

In addition to reading existing documents, .NET makes creating an XML document from scratch very easy. The XML Creator program illustrates how this canbe done. Figures 10.14 and 10.15 show the XML Creator program in action. Whatmakes the XML Creator different from the XML Viewer is that the creator program can create XML without a pre-existing document. The XML Creator emphasizes how to create a new document and new nodes.

Figure 10.14. The XML displayed in the right panel was created by the program.

Figure 10.15. After entering a new element in the text boxes, pressing the Add button, and displaying the XML, ...

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