看看下面的示例 XML——
<div id="main">
<div id="1">
Some random text
</div>
<div id="2">
Some random text
</div>
<div id="3">
Some random text
</div>
<p> Some more random text</p>
<div id="4">
Some random text
</div>
</div>
现在,我如何使用 Xquery 找出主 div 中的 div 数量?以及如何在 XPath 中做到这一点?