How to get the attribute out of an XML file
3 次查看(过去 30 天)
显示 更早的评论
I have an XML like the below. I am able to use xml2struct (in the file exchange) to read the file. My question is how do I read the contents of "label" (DISSOLVED OXYGEN, pH) out of such files?
<datatypes>
<datatype id="116" label="DISSOLVED OXYGEN"/>
<datatype id="257" label="pH"/>
</datatypes>
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!