Question:

Xml documents in C# ????????

by  |  earlier

0 LIKES UnLike

How do i save an Xml document i have created in code to a place like My Documents.

 Tags:

   Report

2 ANSWERS


  1. Environment.GetEnvironmentVariable()  give you access to diffrent pre difined folder such as Desktop and so forth

    so

    String PersonalFolder = Environment.GetFolderPath(Environment.S...

    will give you my document folder and you just have to save your xml in this path


  2. If you are talking about saving the content of an object to file, take a look at XmlSerializer

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions