xdt

Trying to replace XML element element using XDT and XPath locator

时光怂恿深爱的人放手 提交于 2020-01-11 06:23:52
问题 Hi I am trying to replace the <cron-expression> using VS2012 XDT by using the following transform on a quartz.net job description file. I have tested the XPath locator using an online tester and it returns 'what i think i need'. Any help is appreciated. <schedule> <trigger> <cron xdt:Locator="XPath(//job-scheduling-data/schedule/trigger/cron[name='crontriggername2'])" > <cron-expression xdt:Transform="Replace">***some data***</cron-expression> </cron> </trigger> </schedule> for the sample XML

Trying to replace XML element element using XDT and XPath locator

自作多情 提交于 2019-12-01 08:07:52
Hi I am trying to replace the <cron-expression> using VS2012 XDT by using the following transform on a quartz.net job description file. I have tested the XPath locator using an online tester and it returns 'what i think i need'. Any help is appreciated. <schedule> <trigger> <cron xdt:Locator="XPath(//job-scheduling-data/schedule/trigger/cron[name='crontriggername2'])" > <cron-expression xdt:Transform="Replace">***some data***</cron-expression> </cron> </trigger> </schedule> for the sample XML file (Quartz.net) <job-scheduling-data xmlns="http://quartznet.sourceforge.net/JobSchedulingData"