troubleshooting Question

Help with removing duplicates in string using VB.NET

Avatar of vcharles
vcharles asked on
.NET ProgrammingVisual Basic.NET
6 Comments1 Solution236 ViewsLast Modified:
Hi,

I have an xml file which contains a data element with string of duplicate data.For example<CTRY>BEL,BEL,GRC,GRC,USA<CTRY>. How do I remove the duplicate data?

For example:

<Root>
<Table>
<Id>1</id>
<ctry>BEL,BEL,GRC,GRC,USA<CTRY</ctry>
<Item>BMW</item>
</Table>
<Table>
<Id>1</id>
<ctry>BEL,BEL,GRC,GRC,USA,USA<CTRY</ctry>
<Item>BMW</item>
</Table>
<Table>
<Id>1</id>
<ctry>BEL,DEU,GRC,BEL,USA<CTRY</ctry>
<Item>BMW</item>
</Table>
</Root>

Thanks,

Victor
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros