XML Deserialization

Posted by Nave on Stack Overflow See other posts from Stack Overflow or by Nave
Published on 2010-06-14T07:38:40Z Indexed on 2010/06/14 7:52 UTC
Read the original article Hit count: 305

Filed under:
|
|

I have the following xml file.

<a>
  <b>
    <c>val1</c>
    <d>val2</d>
  </b>
  <b>
    <c>val3</c>
    <d>val4</d>
  </b>
<a>

I want to deserialize this into a class and I want to access them with the objects of the class created. I am using C#. I am able to deserialize and get the value into the object of class ‘a’ (the <a> tag). but how to access the value of <b> from this object?

© Stack Overflow or respective owner

Related posts about c#

Related posts about Xml