Thanks a lot Rob, that did it Bala
> From: r...@robmensching.com > Date: Mon, 18 Mar 2013 14:38:11 -0700 > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] XmlFile supports /parent::* Xpath syntax ? > > When using XPath advanced features, be sure to set the > XmlFile/@SelectionLanguage='XPath'. The default is 'XSLPattern' which > doesn't have many features of full blown XPath (but XSLPatter works with > older MSXML versions). > > > On Mon, Mar 18, 2013 at 11:31 AM, Bala K <kba...@hotmail.com> wrote: > > > > > Hi am using trying to use util:XmlFile to change an xml file but it fails > > when i use a specific XPath, saying it couldnt find the path. > > ExecXmlFile: Error 0x80004005: failed to find node: > > //Name/parent::Application in XML file: C:\Program Files\*\foobar.xml > > > > I have tested my xpath query on online XPath verification tool and they > > were successful. > > > > Here is my sample xml and and the xpath query > > <util:XmlFile Id="foo" Action="setValue" > > ElementPath="//Name[\[].='Bar'[\]]/parent::Application/URL" Name="FooBar" > > Value="[URL_STRING_VALUE]" File="[BinDir]foobar.xml"/> > > > > <URLReservations> <Application FooBar='DefaultValue'> > > <Name>Bar</Name> <URL> > > <UrlString>Default_Url</UrlString> </URL> </Application> > > <Application FooBar='DefaultValue'> <Name>Foo</Name> > > <URL> <UrlString>Default_Url</UrlString> > > </URL> </Application> </URLReservations> > > > > ------------------------------------------------------------------------------ > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_mar > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users