C#. simple program that uses data from xml file.

Discussion in 'Programming' started by emd023, Feb 29, 2012.

  1. #1
    i need to write a simple program in vb2010 that uses data from an xml file. the program has two date pickers to choose a range of dates, some checkboxes, and a combobox. if the xml data meets the search criteria the user selected it will return the name of the field.

    the xml file will look like this.

    <fields>

    <Field Location="west"> combobox to select a region
    - <Name>name</Name>
    - <Photo>photo</Photo>
    - <Date Open="may4" Close="dec5"/> datepicker range
    - <Food>
    -- <beer>Yes</beer>
    -- <dogs>No</dogs>
    -- <burger>No</burger> these will be in the checkboxes.
    -- <chips>Yes</chips>
    -- <soda>No</soda>
    - </food>
    </fields>

    there will be multiple fields in the xml file.

    what do I need to do list fields that meet the search criteria? I know i need loops and if statements but i cant figure out how to set it up.

    thank you.
     
    emd023, Feb 29, 2012 IP