Results 1 to 2 of 2

Thread: [RESOLVED] update data in xml file

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2007
    Posts
    694

    Resolved [RESOLVED] update data in xml file

    This is the xml inside the Settings.xml file.
    At present I read this xml data using xmlReader.
    How can I update the data using code please?
    Thanks

    <?xml version="1.0" encoding="utf-8" ?>
    <settings>
    <setting>
    <MailServer>smtpinternalserver</MailServer>
    <MailTo>myaddress</MailTo>
    <MailFrom>anotherAddress</MailFrom>
    <Folder>C:\Work\Developments</Folder>
    <Filter>*.*</Filter>
    <EnableMonitor>True</EnableMonitor>
    </setting>
    </settings>

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: update data in xml file

    XmlDocument is for random, read/write access.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width