私は XML ファイルを持っていて、IXMLDOMNode の SelectSingleNode でそれを読みました。(Delphi-XE3)
XMLResult : IXMLDOMNode;
XMLResult.xml は以下です
<redlineaudit>
<doclist>
<doc id="0" order="0"/>
<doc id="1" order="1"/>
</doclist>
<report>
<redlineparagraph index="0" id="0" sourcedocid="0" cellrow="-1" cellcol="-1">
<operation index="0" value="insert"/>
<operation index="1" value="insert"/>
<move index="0" value="0"/>
<move index="1" value="0"/>
</redlineparagraph>
<redlinephraselist index="0" phrasehassomeworddifferences="false">
<sourceparaid index="0" value="0"/>
<sourceparaid index="1" value="1"/>
<phrases>
<phrase index="0">
<phraseversion index="0" deletedocid="-1" moved="false" sourcedocid="0" phrasehassomeworddifferences="false">
<wordproperties>
<wordproperty index="0" id="0" hasworddifference="false"/>
<wordproperty index="1" id="1" hasworddifference="false"/>
<wordproperty index="2" id="2" hasworddifference="false"/>
<wordproperty index="3" id="3" hasworddifference="false"/>
<wordproperty index="4" id="4" hasworddifference="false"/>
<wordproperty index="5" id="5" hasworddifference="false"/>
</wordproperties>
</phraseversion>
</phrase>
<phrase index="1">
<phraseversion index="0" deletedocid="-1" moved="false" sourcedocid="1" phrasehassomeworddifferences="false">
<wordproperties>
<wordproperty index="0" id="6" hasworddifference="false"/>
<wordproperty index="1" id="7" hasworddifference="false"/>
</wordproperties>
</phraseversion>
</phrase>
<phrase index="2">
<phraseversion index="0" deletedocid="-1" moved="false" sourcedocid="0" phrasehassomeworddifferences="false">
<wordproperties>
<wordproperty index="0" id="6" hasworddifference="false"/>
</wordproperties>
</phraseversion>
</phrase>
</phrases>
<references/>
</redlinephraselist>
<redlineparagraph index="1" id="1" sourcedocid="0" cellrow="-1" cellcol="-1">
<operation index="0" value="insert"/>
<operation index="1" value="insert"/>
<move index="0" value="0"/>
<move index="1" value="0"/>
</redlineparagraph>
<redlinephraselist index="0" phrasehassomeworddifferences="false">
<sourceparaid index="0" value="0"/>
<sourceparaid index="1" value="1"/>
<phrases>
<phrase index="0">
<phraseversion index="0" deletedocid="-1" moved="false" sourcedocid="0" phrasehassomeworddifferences="false">
<wordproperties>
<wordproperty index="0" id="0" hasworddifference="false"/>
<wordproperty index="1" id="1" hasworddifference="false"/>
<wordproperty index="2" id="2" hasworddifference="false"/>
<wordproperty index="3" id="3" hasworddifference="false"/>
<wordproperty index="4" id="4" hasworddifference="false"/>
<wordproperty index="5" id="5" hasworddifference="false"/>
</wordproperties>
</phraseversion>
</phrase>
<phrase index="1">
<phraseversion index="0" deletedocid="-1" moved="false" sourcedocid="1" phrasehassomeworddifferences="false">
<wordproperties>
<wordproperty index="0" id="6" hasworddifference="false"/>
<wordproperty index="1" id="7" hasworddifference="false"/>
</wordproperties>
</phraseversion>
</phrase>
<phrase index="2">
<phraseversion index="0" deletedocid="-1" moved="false" sourcedocid="0" phrasehassomeworddifferences="false">
<wordproperties>
<wordproperty index="0" id="6" hasworddifference="false"/>
</wordproperties>
</phraseversion>
</phrase>
</phrases>
<references/>
</redlinephraselist>
</report>
</redlineaudit>
私の質問は、ループ内のすべてのアイテムをどのように読み取ることができるかということです。
redlineparagraph index = 0 操作 index = 0
操作インデックス = 1
操作値 = '挿入'
redlinephraselist インデックス = 0
ソースパライド インデックス = 0
redlineparagraph index = 1
操作インデックス = 0
操作インデックス = 1
操作値 = '挿入'
redlinephraselist インデックス = 0
ソースパライド インデックス = 0
.......
ありがとう...