C# 操作xml:xml格式不规范,如何读取并获取里面的值?

<?xml version="1.0" encoding="utf-8"?>



<CycleFile>

<Cycle Name="Cycle_List">

<Field Name="PlateID" Value="001-18.nc"/>

<Field Name="LabelName" Value="Label_001-18.cyc"/>

<Field Name="LargeImage" Value="LargePreview_1.bmp"/>

<Field Name="SmallImage" Value="SmallPreview_1.bmp"/>

<Field Name="Color" Value="鏈ㄧ汗"/>

<Field Name="Thickness" Value="18"/>

</Cycle>

<Cycle Name="Cycle_List">

<Field Name="PlateID" Value="002-18.nc"/>

<Field Name="LabelName" Value="Label_002-18.cyc"/>

<Field Name="LargeImage" Value="LargePreview_2.bmp"/>

<Field Name="SmallImage" Value="SmallPreview_2.bmp"/>

<Field Name="Color" Value="鑳℃鏈?/>

<Field Name="Thickness" Value="18"/>

</Cycle>

  

posted @ 2022-03-23 20:55  zls366  阅读(145)  评论(0编辑  收藏  举报