저는 XPath의 초보자이기 때문에 약간의 도움이 필요합니다. 나는 특정 브랜드의 고유 productType 년대의 전부를 얻는 방법을 알아 내려고 노력하고있어중첩 노드에서 고유 한 XPath 노드 값 가져 오기
<items>
<item>
<brandName>Brand 1</brandName>
<productTypes>
<productType>Type 1</productType>
<productType>Type 3</productType>
</productTypes>
</item>
<item>
<brandName>Brand 1</brandName>
<productTypes>
<productType>Type 2</productType>
<productType>Type 3</productType>
</productTypes>
</item>
<item>
<brandName>Brand 2</brandName>
<productTypes>
<productType>Type 4</productType>
<productType>Type 5</productType>
</productTypes>
</item>
</items>
: 나는 XML 파일과 같이 있습니다. 예를 들어 '브랜드 1'에 대한 고유 한 productType은 모두 '유형 1', 유형 2, 유형 3을 출력합니다.
나는 많은 행운도없이 인터넷 검색을 수행했습니다. 어떤 도움을 주시면 감사하겠습니다!
난 당신이 노드 세트 XPath 식에 고유 한 작업을 수행 할 수 있다고 생각하지 않습니다, 당신은 당신이 표현을 구문 분석하는 데 사용하는 어떤 언어로 일부 추가 코드가 필요합니다. – jspboix