Special Character '&' in XPATH Query

不想你离开。 提交于 2021-01-28 19:06:23

问题


Using Windows 7 and Creating a scheduled task based on a trigger. The following line is resulting in "The event log query specified is invalid" [EventData[Data[@Name='Network Client'] and (Data="C:\Program Files (x86)\AT&T Network Client\NetVC.exe")]]

I have uncovered the cause to be the ampersand in the path name "AT&T" If I remove the ampersand then the query is understandable, but of course the path name then becomes invalid. Is there some method where the ampersand special char can used in this situation?

来源:https://stackoverflow.com/questions/38416042/special-character-in-xpath-query

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!