수색…
통사론
- 카운트 (노드 집합)
 
매개 변수
| 기능 | 보고 | 
|---|---|
| 카운트 | 노드 집합의 총 노드 수 | 
비고
우리는 우리의 필요에 맞게 다른 기능과 축을 조합하여 사용할 수 있습니다.
Goku에는 몇 명의 자녀가 있나요?
XML
<Goku>
    <child name="Gohan"/>
    <child name="Goten"/>
</Goku>
 XPATH
count(/Goku/child)
 산출
2.0
        얼마나 많은 식물들이 집에 있습니까?
XML
<House>
    <LivingRoom>
        <plant name="rose"/>
    </LivingRoom>
    <TerraceGarden>
        <plant name="passion fruit"/>
        <plant name="lily"/>
        <plant name="golden duranta"/>
    </TerraceGarden>
</House>
 XPATH
count(/House//plant)
 산출
4.0
    
    
    
    
    Modified text is an extract of the original Stack Overflow Documentation
        아래 라이선스 CC BY-SA 3.0
        와 제휴하지 않음 Stack Overflow