View Single Post
  #3  
Old 07-17-2007, 12:06 PM
martys martys is online now
Registered User
 
Join Date: 06-09-2006
Posts: 24
I should note that I had v6.2 installed previously, which had a different problem (XPath didn't support following-sibling: farther along the line. I updated to the latest just now to see if the problem was fixed, which it was, but it wasn't even getting as far as parsing the XPath any more, because no matter what I put in the XPath, this error still occurs.

The XML file is actually an InstallShield 12 ISM file, and I'm just using a sample build with this one step only to test whether it works.

This is one of the steps I'm running. I realize this one could probably be a find-replace instead, but there are others as well that would be much more difficult to switch to find-replace.

<step action='Write XML'>
<Filename>file.xml</Filename>
<ForceXPath type='11'>-1</ForceXPath>
<Text>8.5.00.02.38</Text>
<XPath>/msi/table[[@name="Property"]]/row/td[[text()="ProductVersion"]]/following-sibling::td[[position()=1]]</XPath>
<indent type='3'>1</indent>
<name>Write XML</name>
</step>

Here's the version info.

MSXML:
4.20.9839
4.20.9841

MSXML Parser:
6.10.1129.0

Visual Build Professional 6.4
Registered to: SoftBrands (2-computer License)
Windows Version: 5.1.2600.2.0
Install path: C:\Program Files\VisBuildPro6
SftTree_IX86_U_50.dll version 5.06
unins000.exe version 51.46.0.0
VisBuildCmd.exe version 6.4.0.2
VisBuildPro.exe version 6.4.0.2
VisBuildBld.dll version 6.4.0.3
VisBuildBurn.dll version 6.4.0.2
VisBuildCore.dll version 6.4.0.2
VisBuildDotNET.dll version 6.4.0.0
VisBuildExt.dll version 6.4.0.3
VisBuildLog.dll version 6.4.0.2
VisBuildMisc.dll version 6.4.0.3
VisBuildMS.dll version 6.4.0.2
VisBuildMS2.dll version 6.4.0.2
VisBuildNet.dll version 6.4.0.3
VisBuildSvr.dll version 6.4.0.2
VisBuildSvr.Interop.dll version 1.0.0.0
VisBuildVCS.dll version 6.4.0.4
Reply With Quote