How to get the attribute out of an XML file
13 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!