Get node in node value from xml

8 ビュー (過去 30 日間)
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 Center および File ExchangeStructured 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