Searching XML file
-
Hi, I would like to get "Token" value based on the description from the below xml file. For example, if my input is 'Company'(Description), it should return 'COS'(Token). I tried with XPath. But not working due to multi level of nodes in xml. Could you pls guide me to achieve this. Thanks in advance.
PROD prod BUSINESS Business News COS Company News ANA Analyst Ratings ANAMOVES Analyst Ratings, Estimates and Target Price Changes ANACHANGE Analyst Rating Changes ANACUT Analyst Downgrades ANACUTEVT Analyst Ratings Cut Events, Announcements IP Intellectual Property COPYRIGHT Copyrights DRGPATENT Drug Patents
-
Hi, I would like to get "Token" value based on the description from the below xml file. For example, if my input is 'Company'(Description), it should return 'COS'(Token). I tried with XPath. But not working due to multi level of nodes in xml. Could you pls guide me to achieve this. Thanks in advance.
PROD prod BUSINESS Business News COS Company News ANA Analyst Ratings ANAMOVES Analyst Ratings, Estimates and Target Price Changes ANACHANGE Analyst Rating Changes ANACUT Analyst Downgrades ANACUTEVT Analyst Ratings Cut Events, Announcements IP Intellectual Property COPYRIGHT Copyrights DRGPATENT Drug Patents
-
Hi, I would like to get "Token" value based on the description from the below xml file. For example, if my input is 'Company'(Description), it should return 'COS'(Token). I tried with XPath. But not working due to multi level of nodes in xml. Could you pls guide me to achieve this. Thanks in advance.
PROD prod BUSINESS Business News COS Company News ANA Analyst Ratings ANAMOVES Analyst Ratings, Estimates and Target Price Changes ANACHANGE Analyst Rating Changes ANACUT Analyst Downgrades ANACUTEVT Analyst Ratings Cut Events, Announcements IP Intellectual Property COPYRIGHT Copyrights DRGPATENT Drug Patents
-
Use // to search in any level into your XML. The following XPath will give you what you want:
//Entity[contains(./Description, 'Company')]/Token