|
-
Jan 2nd, 2004, 12:12 PM
#1
Thread Starter
Registered User
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.
-
Jan 2nd, 2004, 02:43 PM
#2
Frenzied Member
put it in a dataset object
then play with it as u please.
-
Jan 2nd, 2004, 02:57 PM
#3
Thread Starter
Registered User
-
Jan 2nd, 2004, 03:06 PM
#4
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|