Filter XMLs in a folder based on node value using xslt (MatLab)



I have a folder containing thousands of xml entries (and this will be updated every day) and what i want to do is to filter all these entries based on a specific node value. e.g.


Filename1.xml



<?xml version="1.0" encoding="utf-8"?>
<addresses>
<address>
<type>A</type>
<name>Joe</name>
<street>Baker street 5</street>
</address>
</addresses>


and Filename2.xml



<?xml version="1.0" encoding="utf-8"?>
<addresses>
<address>
<type>B</type>
<name>Mary</name>
<street>Baker street 5</street>
</address>
</addresses>


Is it possible with XSLT to filter and to take in a folder only entries which contain:



<type>A</type>


If i do this with MatLab xlst function i would expect that the output should be a string if


type == A else empty string.


No comments:

Post a Comment