You can remove any node at any time from a document.

Not sure how your code is written, but using .SelectNodes and
RemoveNode it is doable

dim nl as XmlNodeList
dim n as XmlNode

nl = XmlDoc.SelectNodes("//@sql:relationship") 'note you may need to
use a namespace manager  to work with the different prefixes. but i am
not in front of an IDE right now, so this is just gives you the basics

'this will remove each node found from it's parent node
for each n in nl
 n.ParentNode.RemoveChild(n)
next


That's it.

-- 
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to