如果下面所说有误,还请各位大师批评指正。
假设有XML内容如下:
- <SoftList>
- <Client_IO_SoftWareResult>
- <GJDownLoadCount>125804</GJDownLoadCount>
- <OrderID>0</OrderID>
- <CRC32 />
- <FileURL>http://abc.exe</FileURL>
- <SoftClassName>2015</SoftClassName>
- <SoftClassCode>xxx2015</SoftClassCode>
- <SoftClassID>1400024</SoftClassID>
- <ID>9729</ID>
- <GJSoftName>abc</GJSoftName>
- <AreaName>全国</AreaNam
- e>
- <AreaID>0</AreaID>
- <Version>6.4.1.2088.0</Version>
- <Description>新版本的优化功能有40余项<br /></D
- escription>
- <Summary />
- <UpLoadDate>2016-10-08</UpLoadDate>
- <LastModifyDate>2016-10-8 10:06:08</LastModifyDate>
- <FileLength>228908102</FileLength>
- <FileName />
- <ClassName />
- <SoftImg>5df4e699-34fb-4eb3-b7d6-f056db73d3b1.PNG</SoftImg>
- <LockVersion />
- <IsPatch>0</IsPatch>
- <ProductDesc>xx</ProductDesc>
- <IsNew>1</IsNew>
- <IsPublishWeb>1</IsPublishWeb>
- <IsHistoryVersion>0</IsHistoryVersion>
- </Client_IO_SoftWareResult>
- <Client_IO_SoftWareResult>
- <GJDownLoadCount>111</GJDownLoadCount>
- <OrderID>0</OrderID>
- <CRC32 />
- <FileURL>下载地址2</FileURL>
- <SoftClassName>bb</SoftClassName>
- <SoftClassCode>cc</SoftClassCode>
- <SoftClassID>1400050</SoftClassID>
- <ID>10988</ID>
- <GJSoftName>dd</GJSoftName>
- <AreaName>ee</AreaName>
- <AreaID>0</AreaID>
- <Version>7.0.0.2126.0</Version>
- <Description>ee</Description>
- <Summary />
- <UpLoadDate>2017-08-08</UpLoadDate>
- <LastModifyDate>2017-8-8 14:24:20</LastModifyDate>
- <FileLength>369489322</FileLength>
- <FileName />
- <ClassName />
- <SoftImg>df352ea4-ec7e-4848-be63-ec111d0edc45.PNG</SoftImg>
- <LockVersion />
- <IsPatch>0</IsPatch>
- <ProductDesc>产品描述2</ProductD
- esc>
- <IsNew>1</IsNew>
- <IsPublishWeb>1</IsPublishWeb>
- <IsHistoryVersion>0</IsHistoryVersion>
- </Client_IO_SoftWareResult>
- <Client_IO_SoftWareResult>
- <GJDownLoadCount>5524</GJDownLoadCount>
- <OrderID>0</OrderID>
- <CRC32 />
- <FileURL>下载地址3</File
- URL>
- <SoftClassName>分类3</SoftClassNam
- e>
- <SoftClassCode>代码3</SoftClassCod
- e>
- <SoftClassID>ID3</SoftClassID>
- <ID>11189</ID>
- <GJSoftName>名字3</GJSoftNam
- e>
- <AreaName>全国</AreaNam
- e>
- <AreaID>0</AreaID>
- <Version>1.3.2.3021.0</Version>
- <Description>描述3</Descriptio
- n>
- <Summary />
- <UpLoadDate>2017-09-13</UpLoadDate>
- <LastModifyDate>2017-9-15 11:45:20</LastModifyDate>
- <FileLength>108439720</FileLength>
- <FileName />
- <ClassName />
- <SoftImg>40ba57b0-6af6-4e8f-a811-11131321b24d.ICO</SoftImg>
- <LockVersion>3.8.552.3424</LockVersion>
- <IsPatch>0</IsPatch>
- <ProductDesc>介绍3</ProductDes
- c>
- <IsNew>1</IsNew>
- <IsPublishWeb>1</IsPublishWeb>
- <IsHistoryVersion>0</IsHistoryVersion>
- </Client_IO_SoftWareResult>rsion>
- </Client_IO_SoftWareResult>
- </SoftList>
复制代码 SoftList 根下,有三个相同的Client_IO_SoftWareResult子项,每个Client_IO_SoftWareResult下有26个相同子项。
这种模式下,如何取每个Client_IO_SoftWareResult下的各自子项。
由于精益模块中,取子节点值只能:
相比易语言本身支持库:
由于精益的xml树类无法采用索引形式,无法表示出它是它父节点的第几个子节点,故似乎无法取出上面例子中“下载地址2”和“下载地址3”。
故建议精益添加此功能。
上述建议,不知道是否正确,由于我本身是个菜鸡,也许是因为我使用不精而无法实现,还请大家指正。
|