Is it possible to read,compare and look for a specefic strings in xml files using xpath from Matlab ? I don't find any documentation.
could someone give me an example ?
<?xml version="1.0" encoding="UTF-8"?>
<address xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation='test.xsd'>
<lists name="myState">
<description name="-temp">-20</description>
<description name="localization">north</description>
<description name="-state">false</description>
</lists>
</address>
<language language="english" name="">
<description name="population">5000</description>
</language>
here to access to description name="localization"> , I did :
docNode = xmlread(myXMLFILE);
factory = XPathFactory.newInstance;
xpath = factory.newXPath;
% compile and evaluate the XPath Expression
expression = xpath.compile(adress/lists/description')
description = expression.evaluate(docNode, XPathConstants.NODE);
descriptionValue = phoneNumberNode.getTextContent % this gives me -20
how can I get the value of ?
thanks