我有這個 XPathExpression expr = xpath.compile("/job/entries/entry/name/text()");我需要按type屬性的文本值進(jìn)行過濾,因此我只獲得type中具有值 JOB 的條目對象。<job> <entries> <entry> <name>OperationalDataStoreToReconciled</name> <description/> <type>JOB</type> </entry> </entries></job>
添加回答
舉報(bào)
0/150
提交
取消