troubleshooting Question

XML to Class Object C#

Avatar of sbornstein2
sbornstein2 asked on
C#XML
2 Comments1 Solution96 ViewsLast Modified:
<?xml version="1.0" encoding="UTF-16"?>
<cust-response>
   <result-response>
     <load entity="CUSTOMER" id="1234">
        <result-entry result-id="456" succeed="Yes">
           <return F_RESULT="focused" STATUS="C" />
        </result-entry>
        <result-entry result-id="789" succeed="No">
           <errors>
              <error name="other">
                 <desc>
                      <error-message>Result cannot be validated</error-message>
                 </desc>
              </errors>
        </result-entry>
     </load>
     <load entity="CUSTOMER" id="5678">
        <result-entry result-id="789" succeed="Yes">
           <return F_RESULT="focused" STATUS="C" />
        </result-entry>
        <result-entry result-id="555" succeed="No">
           <errors>
              <error name="other">
                 <desc>
                      <error-message>Result cannot be validated</error-message>
                 </desc>
              </errors>
        </result-entry>
     </load>
   </result-response>
</cust-response>

I want to return a class array of the following:
   CustomerId
      Result-id's and succeed yes or no and if errors showing the error messages
ASKER CERTIFIED SOLUTION
Chinmay Patel
Chief Technology Ninja
Join our community to see this answer!
Unlock 1 Answer and 2 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 2 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