function examples = getExamplesBySupportingFile(examplesXml,supportingFile)
        
    dom = xmlread(examplesXml);
    factory = javax.xml.xpath.XPathFactory.newInstance;
    xpath = factory.newXPath;
    bySupportingFile = '/demos/demoitem[file/text()=''%s'']/source/text()';
    expression = xpath.compile(sprintf(bySupportingFile,supportingFile));
    
    NODESET = javax.xml.xpath.XPathConstants.NODESET;
    nodeList = expression.evaluate(dom,NODESET);
    L = nodeList.getLength;    
    examples = cell(L,1);
    if L == 0        
        return;
    end
    for n = 0:L-1
        examples{n+1,1} = char(nodeList.item(n).getTextContent());
    end
end