Use of count in Xpath expressions

后端 未结 2 947
一生所求
一生所求 2020-12-20 03:58

if I have an XML like this: (just to do an example)


    
            
2条回答
  •  情深已故
    2020-12-20 04:32

    Check out this Microsoft XPath count() tutorial.

    count(/restaurant/tables/table)
    

    will count the table elements in the above path.

提交回复
热议问题