특정 위치중에 attribute가 DB이고 값이 Gene일 경우 해당 Xref element의 ID attribute의 값을 받는 예제
(말이 어렵다 -ㅁ-)
/ClinVarSet/ReferenceClinVarAssertion/MeasureSet/Measure/MeasureRelationship/XRef[@DB='Gene']/@ID
[링크 : https://www.w3schools.com/xml/xpath_syntax.asp]
'Programming > xml' 카테고리의 다른 글
xpath xsi (0) | 2019.08.12 |
---|---|
xpath concat (0) | 2019.08.08 |
xpath syntax - attribute 검색 및 특정값 얻기 (0) | 2019.08.08 |
xpath.. (0) | 2019.08.01 |
xmllint string() (0) | 2019.07.25 |
libxml2 - xmlNodeDump() (0) | 2019.07.09 |
댓글을 달아 주세요