troubleshooting Question

read xml in C#

Avatar of RameshLathu
RameshLathuFlag for United States of America asked on
XMLC#ASP.NET
4 Comments2 Solutions700 ViewsLast Modified:
How read one xml file and form another xml file using C#?

I have a xml file like,

<policydetails>
  <current>
     <no></no>
     <type></type>
</current>
<prior>
  <no></no>
  <type></type>
</prior>
</policydetails>

I need to read the above xml file (read nodes like policydetails, current) and using the node read another excel file get the value for spefic node,

say for eg, from xml read the node policydetails and get the value for policydetails from excel file.

Then I want to use both the tag name and value from excel and create another xml as below,

<policydetails>
  <current>
     <no>1</no>
     <type>A</type>
</current>
<prior>
  <no>2</no>
  <type>B</type>
</prior>
</policydetails>

I want to do this in C#, please help
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 4 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 2 Answers and 4 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