Want to Convert my XML into a Key Value Pair or as a Dictionary. RRS feed

  • Question

  • Hi,

    Below is my XML structure.


















    I want to convert this into a dictionary while converting using XML Serializer.

    Want only Name and Value fields as Key (Name) and Value(Value).

    Class structure will be

    Class MyData



    public Dictionary<string,string> Data {get;set;}


    What attributes i have to specify in XmlElement Tag to achieve this!!?

    Tuesday, February 12, 2019 8:50 AM