私はETに非常に慣れていませんが、これを行う最も簡単な方法が見つかりません。ネストされていない関連付けられた値を含む XML ファイルがあり、それぞれからテキストを取得し、後で操作する変数にそれらを押し込む必要があります。問題は、各値を取得する方法を知ることです。
XML の例:
<key>Creation Date</key>
<date>2012-08-18T16:53:23Z</date>
<key>Entry Text</key>
<string>This is some entry text</string>
<key>Location</key>
<dict>
<key>Administrative Area</key>
<string>State</string>
<key>Country</key>
<string>United States</string>
<key>Latitude</key>
<real>39.647493</real>
<key>Locality</key>
<string>City</string>
<key>Longitude</key>
<real>-84.11737579840</real>
<key>Place Name</key>
<string>123 street</string>
<key>State</key>
<string>auto</string>
</dict>
<key>Starred</key>
<false/>
<key>UUID</key>
<string>0B38EF885FB84F647GHT738</string>
ご覧のとおり、タグは実際にはインテリジェントな方法で関連付けられていません。たとえば、次のように取得します。
EntryText = [The <String> Text after <key> Entry Text]
so EntryText would = これはエントリーテキストです
また
country = [<key>Location <dict> <key> Country <string>]
国 = 米国
お時間をいただきありがとうございます。