Attributes and count() in xpath expression

后端 未结 3 793
鱼传尺愫
鱼传尺愫 2021-01-26 21:48

Given the following XML file :


    
        3
        
    
    

        
3条回答
  •  再見小時候
    2021-01-26 22:17

    Run your java code again but without the count function. You'll get back a list of nodes (sometimes elements and sometime attributes). Iterate over the list and write out the name of each node. That will help you understand which of the nodes are included in each of the counts.

提交回复
热议问题