xpath
-
Is there a way in an xpath to do a basic IF without using xsl... This is the query to tell me if there is an update available: //application[@name="OutlookView"]/version>1 This is the query to tell me the path to the update: //application[@name="OutlookView"]/url I would like to merge them if I can, is this possible? Matthew Hazlett Sometimes I miss the simpler DOS days of Borland Turbo Pascal (but not very often).
-
Is there a way in an xpath to do a basic IF without using xsl... This is the query to tell me if there is an update available: //application[@name="OutlookView"]/version>1 This is the query to tell me the path to the update: //application[@name="OutlookView"]/url I would like to merge them if I can, is this possible? Matthew Hazlett Sometimes I miss the simpler DOS days of Borland Turbo Pascal (but not very often).
One way: //application[@name="OutlookView"]/*[name()='version' or name()='url']