问题描述
<?xmlversion="1.0"encoding="UTF-8"?>-<WSMsg><flag>0</flag><ermsg/>-<EventDetails>-<EvnetDetail><alertId>308</alertId><category>Information</category><desc>SERVICEPROVIDERSTARTED.FESNAME:FES.FESURL:TSP_TCP://10.21.4.102:1947</desc><eventGenerationTime>2012-03-1213:37:12046</eventGenerationTime><source>FES</source><time>03-12-2012,13:37:46113</time></EvnetDetail>-<EvnetDetail><alertId>308</alertId><category>Information</category><desc>SERVICEPROVIDERSTARTED.FESNAME:FES.FESURL:TSP_TCP://10.21.4.102:1947</desc><eventGenerationTime>2012-02-1316:54:13027</eventGenerationTime><source>FES</source><time>02-13-2012,16:54:27446</time></EvnetDetail>-<EvnetDetail><alertId>308</alertId><category>Information</category><desc>SERVICEPROVIDERSTARTED.FESNAME:FES.FESURL:TSP_TCP://10.21.4.102:1947</desc><eventGenerationTime>2012-02-1316:09:13057</eventGenerationTime><source>FES</source><time>02-13-2012,16:09:57894</time></EvnetDetail>-<EvnetDetail><alertId>308</alertId><category>Information</category><desc>SERVICEPROVIDERSTARTED.FESNAME:FES.FESURL:TSP_TCP://10.21.4.102:1947</desc><eventGenerationTime>2012-02-1315:57:13009</eventGenerationTime><source>FES</source><time>02-13-2012,15:57:09561</time></EvnetDetail>-<EvnetDetail><alertId>308</alertId><category>Information</category><desc>SERVICEPROVIDERSTARTED.FESNAME:FES.FESURL:TSP_TCP://10.21.4.102:1947</desc><eventGenerationTime>2012-02-1315:48:13011</eventGenerationTime><source>FES</source><time>02-13-2012,15:48:11469</time></EvnetDetail>-<EvnetDetail><alertId>308</alertId><category>Information</category><desc>SERVICEPROVIDERSTARTED.FESNAME:FES.FESURL:TSP_TCP://10.21.4.102:1947</desc><eventGenerationTime>2012-02-1010:12:10001</eventGenerationTime><source>FES</source><time>02-10-2012,10:12:01005</time></EvnetDetail>-<EvnetDetail><alertId>308</alertId><category>Information</category><desc>SERVICEPROVIDERSTARTED.FESNAME:FES.FESURL:TSP_TCP://10.21.4.102:1947</desc><eventGenerationTime>2011-12-1611:06:16033</eventGenerationTime><source>FES</source><time>12-16-2011,11:06:33830</time></EvnetDetail>-<EvnetDetail><alertId>308</alertId><category>Information</category><desc>SERVICEPROVIDERSTARTED.FESNAME:FES.FESURL:TSP_TCP://10.21.4.102:1947</desc><eventGenerationTime>2011-12-1410:33:14003</eventGenerationTime><source>FES</source><time>12-14-2011,10:33:03201</time></EvnetDetail></EventDetails></WSMsg>
解决方案
解决方案二:
LinqtoXML我也不太懂,听说过
解决方案三:
,然后自己写入datatable