Emma Emma

Emma Emma

  • NA
  • 101
  • 55.4k

xml datagridview xpath

May 17 2013 4:17 AM
Hi,

I have one task about XML file. First I need to load one xml file, then depending on the value of Zip the information from xml file need to be divided into 2 datagridviews. The xml file looks like this:
- <Employees>
- <NO1>
  <Name>Ma Jin Hu</Name> 
  <ZIP>333</ZIP> 
  <Address>Feng Huang Street</Address> 
  <City>Chu Zhou City</City> 
  <State>ANHUI</State> 
  </NO1>
- <NO2>
  <Name>Wang Tian</Name> 
  <ZIP>239</ZIP> 
  <Address>Lang Ya Street</Address> 
  <City>He Fei City</City> 
  <State>ANHUI</State> 
  </NO2>
- <NO3>
  <Name>Zou Wen Biao</Name> 
  <ZIP>100</ZIP> 
  <Address>Sai Di Street</Address> 
  <City>Bei Jin City</City> 
  <State>Bei Jin</State> 
  </NO3>
  </Employees>


For example: when Zip <200 all the information goes to datagridview1. when Zip>200, the information goes to datagridview 2. ...so in this case in datagridview1 there should have all the information from NO3, datagridview2 should have information from No1 and NO2...


Can anyone help me? thanks a lot..I tried long time, but nothing works so far...Thanks

Answers (2)