Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有一个如下的 XML 树:
proceedings -name -contents -article -author -title -pages
如何识别只有一位作者的任何标题?以及有超过三个作者使用 XPath 的文章数量?
一位作者的标题:
/proceedings/contents/article[count(author)=1]/title
超过三位作者的文章数量:
count(/proceedings/contents/article[count(author)>3])