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.
我喜欢
<Father> <child1/> <child2/> <child3/> <child4/> </Father>
我在<child1>节点。(或任何其他子节点。)现在我需要计算父亲拥有的孩子的数量。这该怎么做?
<child1>
有count(../*)帮助吗?它计算上下文节点的父节点的子元素。
count(../*)