troubleshooting Question

Help with updating/adding data elements from fileB to fileA

Avatar of vcharles
vcharles asked on
XML.NET ProgrammingVisual Basic.NET
6 Comments1 Solution277 ViewsLast Modified:
Hello,

When I save my data I have file B, how do I look for same LinkAID in file A and replace its data elements with data elements in file B? and If LinkAID in file B is not in File A, How to I append its data elements in File A?


FileA:

<table>
<LinkAID>1<LinkAID>
<First>ItemA</First>
<Last>ItemB</Last>
<Date>Itemc</Date>
</table>
<table>
<LinkAID>2<LinkAID>
<First>ItemD</First>
<Last>ItemE</Last>
<Date>ItemF</Date>
</table>
<table>
<LinkAID>3<LinkAID>
<First>ItemG</First>
<Last>ItemH</Last>
<Date>ItemI</Date>
</table>


FileB:

<table>
<LinkAID>1<LinkAID>
<First>ItemA</First>
<Last>ItemB</Last>
<Date>temc</Date>
</table>
<table>
<LinkAID>2<LinkAID>
<First>ItemD</First>
<Last>ItemE</Last>
<Date>ItemF</Date>
</table>
<table>
<LinkAID>3<LinkAID>
<First>ItemG</First>
<Last>ItemH</Last>
<Date>temI</Date>
</table>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
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