タグ名が同じで値が異なる要素がいくつかあります。以下の例は、私の解析を示しています。
<Report>
<ReportHost name= 2.3.3.3><HostProperties>
<tag name="x"> Monday...</tag>
<tag name="z"> Linux.....</tag>
私の問題は、文字列「x」と「z」の後のテキストをどのようにキャプチャするかです。
langs.Report.ReportHost.each{ReportHost->
${ReportHost.HostProperties.tag['@name']}"
しかし、これは x と z を取得しているだけです。月曜日と Linux を含む、その後のテキストを取得するために必要な構文は何ですか。