日期:2014-05-18  浏览次数:20563 次

请问.net如何读取xml的值
 
请问.net如何读取xml的值 写到数据库 希望给出完整的代码 谢谢



<?xml version="1.0" encoding="utf-8" ?> 
- <channel>
- <item>
  <userId>427</userId> 
  <proId>2</proId> 
  <proname>fsdfsd</proname> 
  <keywords>fsdfs</keywords> 
  <details>sdfsdfsf</details> 
  <picture /> 
  <minorder>fsdfPiece/Pieces</minorder> 
  <fobprice>fsd~fsdfGBP</fobprice> 
  <port>sdfsd</port> 
  <payment>D/P</payment> 
  <deliverytime>sdf</deliverytime> 
  <supplyability>sdfPiece/Pieces per Day</supplyability> 
  <package>sdfsdfsd</package> 
  </item>
- <item>
  <userId>427</userId> 
  <proId>3</proId> 
  <proname>fsd</proname> 
  <keywords>说的方法</keywords> 
  <details>时代发生的发</details> 
  <picture /> 
  <minorder>312313Milligram</minorder> 
  <fobprice>3123~123USD</fobprice> 
  <port /> 
  <payment>L/C,D/A, D/P,T/T</payment> 
  <deliverytime>312312 123</deliverytime> 
  <supplyability>31231Liter/Liters per Day</supplyability> 
  <package>312312 313123</package> 
  </item>
- <item>
  <userId>427</userId> 
  <proId>1</proId> 
  <proname>aluminum composite panel</proname> 
  <keywords>aluminum composite panel,aluminum composite panel</keywords> 
- <details>
  Flow chartIt is composited by five layers of materials, from the inside to outside respectively: polyethylene or PVDF, aluminum panel,PE, polyethylene or PVDF. Speciality 1.It has the similar intensity as the metallic panel and is easy to bend; moreover, it eliminates the brittleness of metallic panel, without rebound after bending. 2.It has excellent features as high temperature, high pressure and corrosion resistant excellent features of heat insulation,sound insulation 4.It is easy to cut, to process and to connect by equipped fittings.&nbsp; 5.Its lifespan is 10 to 20 years. 6.It is light which can save the freight and reduce the cost. 
  <strong>Application scope:</strong> 
  1.curtain wall 2.advertisement board,&nbsp; 3.train and bus decoration,station,airport 4.outner and inner wall&nbsp; 5.overbridge, passageway and etc. 
  <strong>Demension:</strong> 
  1.thickness:3/4mm,3mm to 6mm can be accept 2.width:1220mm,special widths are abailable upon customers' request 3.length:2440mm,Maximum 6000mm 
  <strong>certificate</strong> 
  The ISO9001 quality system certificate, The ISO9001 quality system 2000 revised version 
  </details>
  <picture /> 
  <minorder /> 
  <fobprice /> 
  <port>china</port> 
  <payment /> 
  <deliverytime>2 days</deliverytime> 
  <supplyability /> 
  <package>aluminum composite panel aluminum composite panel</package> 
  </item>
- <item>
  <userId>427</userId>&