I have been trying to accomplish to populate a list of nodes that corresponds to the conditional statement in javascript. I can now search only by project name, as shown in the statement below. However, I want to be able to filter the search by Project Name and Year, and so on. I know this can easily be accomplished in XSLT. Unfortunately, I can not use dynamic XSLT in Sharepoint. Is there any way that I can search my XML file based on multiple criteria?
Thanks in advance.
Code:
myDoc.setProperty("SelectionLanguage", "XPath");
currNode = myDoc.selectNodes("/projects/item/Project_Name[contains(@value, '" + prName.value+ "')]");
Comment