Hi,
I am sorry to have it posted in VB section. Thanks for the help with the above code.
Could you post some VB code to remove particular empty nodes from an xml?
Suppose I want to look for <business> and <individual> nodes in my XML and then remove them if they are empty. Any example or an idea to get started is helpful for me.
Thank you!
Main Topics
Browse All Topics





by: cpkilekofpPosted on 2009-08-10 at 15:29:05ID: 25064697
It's a little bit weird helping with C# code in a Visual Basic.NET section, but I can swing with it :)
Note that the last line of the condition in the Code Snippet uses .LocalName, comparing it to the string "business". That is how you do it.
Select allOpen in new window