Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-17-2007, 11:53 AM
martys martys is online now
Registered User
 
Join Date: 06-09-2006
Posts: 24
XML Write problems

While attempting to using XML Write, I came across an annoying problem: Whenever I try to execute the step, it says "Error at line 3, position 11 loading 'file.xml': DTD is prohibited."

What exactly does this mean? How do I get around it without permanently modifying the XML file? I know the DTD is valid, because I can open it in Firefox, IE, and Visual studio, all with no complaints.
Reply With Quote
  #2  
Old 07-17-2007, 11:57 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Please ZIP and send or post:
1) The info from Help | About | Install Info
2) The .bld file
3) The XML file
4) The version(s) of MSXML listed in the Windows Add/Remove Programs Control Panel applet

Thanks.
Reply With Quote
  #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
  #4  
Old 07-17-2007, 12:32 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Can you ZIP and attach the ISM file? Thanks.
Reply With Quote
  #5  
Old 07-17-2007, 12:34 PM
martys martys is online now
Registered User
 
Join Date: 06-09-2006
Posts: 24
Attached

Last edited by martys; 07-23-2007 at 09:32 AM.
Reply With Quote
  #6  
Old 07-17-2007, 02:38 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Starting w/ MSXML 6.0, for security reasons, the ProhibitDTD property defaults to True, which will prevent the attached file from loading.

Some options:
1) Uninstall MSXML 6.0
2) Remove the DTD from the file
3) Tweak the Write XML action to set the ProhibitDTD property to False (see attached project)

In a future release, an option will be added to the Write XML action to configure the value used for the ProhibitDTD property.
Attached Files
File Type: bld fixwritexml.bld (626 Bytes, 1868 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 01:45 PM.


Copyright © 1999-2023 Kinook Software, Inc.