Omar Kh

Omar Kh

  • 1.8k
  • 165
  • 2.6k

how to parse xml into combobox?

Apr 12 2020 8:38 AM
i have a xml String which contains the following data below
 
 and im tring to parse the Curs section to a combo box which the Display Memeber would be CurName
and the Value Memeber would be  CurNo
i have tried many way but with no luck !
im using c# windows forms any help?
    1. <Data><Result>ok</Result>  
    2. <RemNo>114</RemNo>  
    3. <ListNo>5</ListNo>  
    4. <m_bb_cont>0</m_bb_cont>  
    5. <m_s_cont>65</m_s_cont>  
    6. <m_s_cont_change>1</m_s_cont_change>  
    7. <m_s_no>111</m_s_no>  
    8. <m_s_no_name>company name</m_s_no_name>  
    9. <m_s_no_change>1</m_s_no_change>  
    10. <m_use_file>maser</m_use_file>  
    11. <m_ss_dob_must>0</m_ss_dob_must>  
    12. <m_bb_dob_must>0</m_bb_dob_must>  
    13. <m_allow_fraction>1</m_allow_fraction>  
    14. <g_issue_id_must>0</g_issue_id_must>  
    15. <nat_no_must>0</nat_no_must>  
    16. <paytypes><paytype>  
    17. <no>1</no>  
    18. <name>CASH</name>  
    19. </paytype><paytype>  
    20. <no>2</no>  
    21. <name>CREDIT</name>  
    22. </paytype><paytype>  
    23. <no>3</no>  
    24. <name>other banks</name>  
    25. </paytype></paytypes>  
    26.   
    27. <Curs>  
    28. <Cur>  
    29. <CurNo>2</CurNo>  
    30. <CurName>USD</CurName>  
    31. <CurCode>USD</CurCode>  
    32. </Cur>  
    33. <Cur>  
    34. <CurNo>9</CurNo>  
    35. <CurName>JOD</CurName>  
    36. <CurCode>JOD</CurCode>  
    37. </Cur>  
    38. </Curs>  
    39. </Data> 

    Answers (3)