私は次のような単純なxmlを持っています:
<root Name="Bob" isImployed="true">
<customer Name="Bob" id="12345">was addressed in the shopping mall</customer>
<Job-title>Insurance</Job-title>
<experience>15</experience>
<Question1 question="how much do you make?">35000</Question1>
<Question2 question="do you get a yearly bonus?">5000</Question2>
<Question3 question="would you be interested in our weekly plan?">yes</Question3>
</root>
データを含む XMLList を作成しました。
var mylist:XMLList;
すべての質問を確認したいと思います (質問 1、質問 2、質問 3 以外にもあります)。数字 (給与、ボーナス) を含むものもあれば、含まないものもあります。リスト全体を調べて、答えが数字かどうかを調べ、そうであれば数字を取得する方法を探しています。(そしてそれを使っていくつかの計算を行います)。どうやってやるの?
ありがとう!