Get node in node value from xml

2 次查看(过去 30 天)
YUNA PARK
YUNA PARK 2020-6-9
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