假设Reply Message是这样的:
<root><result code="0" msg="success" /><m k="g" j="" t="67850" s="0" n="33"><r><dv d="SecId" v="0P00009D4B" /></r><r><dv d="SecId" v="0P00009DKL" /></r><r><dv d="SecId" v="0P00009CXD" /></r><r><dv d="SecId" v="F00000QH2Q" /></r><r><dv d="SecId" v="F000001W72" /></r><r><dv d="SecId" v="F00000270F" /></r><r><dv d="SecId" v="F0000004ED" /></r></m></root>
要从里面提取v="**********"中的值
先用XPath Extractor解析
然后,用ForEach Controller进行循环
运行之后通过Debug PostProcessor可以看到:
securitiesId_1=0P00009D4B
securitiesId_2=0P00009DKL
securitiesId_3=0P00009CXD
securitiesId_4=F00000QH2Q
securitiesId_5=F000001W72
securitiesId_6=F00000270F
securitiesId_7=F0000004ED
securitiesId_8=F000003XKO
securitiesId_9=0P0000AY6A