Get node in node value from xml

조회 수: 7 (최근 30일)
YUNA PARK
YUNA PARK 2020년 6월 9일
편집: Robert Ungi 2022년 1월 5일
Hi all,
I'm having trouble getting value from node in node in xml.
XML file is like below:
I want to get Index and poision xy values from 'b' node.
So far I made below:
but have no idea how to get poisiton value due to conflict of two nodes...
If anyone knows how to deal with this, please let me know...

답변 (1개)

Robert Ungi
Robert Ungi 2022년 1월 5일
편집: Robert Ungi 2022년 1월 5일
You can use xpath, see the example here!

카테고리

Help CenterFile Exchange에서 Structured Data and XML Documents에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by