troubleshooting Question

Console application to manipulate XML in .NET using C#

Avatar of Easwaran Paramasivam
Easwaran ParamasivamFlag for India asked on
XML.NET ProgrammingC#
6 Comments2 Solutions160 ViewsLast Modified:
Hi Experts,

 Please refer below sample xml.  I would like to develop a console applications in C# in a such a way that they solve below problems. Could you please suggest how to achieve? Thanks in advance!

1. Add or Update/Delete existing Person
Say for instance if user chooses Update option it should ask which Person he needs to update and what details should be updated (ex. Age value should be modified as 55

<PersonDetails>
   <Person>
     <Name>Easwar</Name>
     <Age>26</Age>
   </Person>
<Person>
     <Name>Baskar</Name>
     <Age>24</Age>
   </Person>
<PersonDetails>

2. For existing Person, if address details need to be added, it should add accordingly. The program should be generic in such a way that I could add qualification details later point as same as address.

<PersonDetails>
   <Person>
     <Name>Easwar</Name>
     <Age>26</Age>
      <Address>
           <Street>Gandhi nagar</Street>
            <City>Mumbai<City>
            <PinCode>4000234</PinCode>
      <Address>
   </Person>
<Person>
     <Name>Baskar</Name>
     <Age>24</Age>
   </Person>
<PersonDetails>
ASKER CERTIFIED SOLUTION
Dmitry G
Senior Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers 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 2 Answers 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