Victor Charles
asked on
Help with removing Data elemnts not included in string variable using VB.NET
Hi,
How do you modify the code to remove all Data elements in an xml file not found in a string variable S = "Effect, NSC, NSN, AGD" using VB.NET?
Thanks,
Victor
How do you modify the code to remove all Data elements in an xml file not found in a string variable S = "Effect, NSC, NSN, AGD" using VB.NET?
Thanks,
Victor
ASKER
Hi Fernando,
Thanks for the code, unfortunately it's working the opposite way, I would like to delete all data elements not included in the string ({"Effect", "NSC", "NSN", "AGD" }). Instead the code deletes the data elements in the string.
Victor
Thanks for the code, unfortunately it's working the opposite way, I would like to delete all data elements not included in the string ({"Effect", "NSC", "NSN", "AGD" }). Instead the code deletes the data elements in the string.
Victor
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, I will try it when i get home. Also how do you achieve the same if the data elements are in an xml file?
I can open if new case if you prefer.
Thanks.
I can open if new case if you prefer.
Thanks.
That was in an XML file.
ASKER
Hi,
I meant, using values from file2.xml
<Table>
<Effect>
<NSC>
<NSN>
<AGD>
<Table>
I will try the codr and get back to you.
Victor
I meant, using values from file2.xml
<Table>
<Effect>
<NSC>
<NSN>
<AGD>
<Table>
I will try the codr and get back to you.
Victor
ASKER
Thank You.
Hi Victor, can you please open a new question for your last post. Thanks
This should work.
Open in new window