[英]XPath, two selecting conditions with “and”?
這是我的XPath選擇:
/document/transport/receiver[regcode='70007'] |
/document/metaxml/LetterMetaData[Type='bill']
但這不符合我的需要。 我真正想要的是,我可以告訴XPath,如果regcode ='70007'和Type ='bill'然后執行操作。 據我所知,然后| (管道)表示XPath中的OR。
有沒有辦法制作XPath,以便檢查兩者?
/document[
transport/receiver[regcode='70007']
and
metaxml/LetterMetaData[Type='bill']
]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.