Results 1 to 4 of 4

Thread: xml editing (delete and insert nodes)

  1. #1

    Thread Starter
    Registered User
    Join Date
    Jul 2001
    Posts
    283

    xml editing (delete and insert nodes)

    <watchFolders>
    ..........<folder path="C:\test"/>
    ..........<folder path="C:\New Folder"/>
    </watchFolders>

    if that is my xml file, is there a way to delete a folder node without using a for loop to cycle through and check each one? if that is the only way, can someone show me the code?
    Also, how do I insert a new folder node as the last child of watchFolders node? also some code would be nice.

  2. #2

  3. #3

    Thread Starter
    Registered User
    Join Date
    Jul 2001
    Posts
    283
    how do you do that?

  4. #4
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    dim ds as new Dataset
    ds.readXML("C:\myxml.xml")

    now you have the dataset to play with
    add, delete, modify

    for more info on datasets, consult MSDN

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