cancel
Showing results for 
Search instead for 
Did you mean: 
ramachandran
Pilgrim

XML File change adds the close tag.

Hi,

My xml file change adds the close tag to the nodes by default.
e.g
my xml file contains this node


After the xml file change it gets changed to


Is there any way to restrict this change to happen by Installshield.

-ram
0 Kudos
1 Reply
Cary_R
Pilgrim

Re: XML File change adds the close tag.

Hi Ram,

I had actually run into this fairly recently. Basically, this behavior is more due to the InstallShield Custom Actions using Microsoft's XML Parser, and so there's not really a way to work around it, other than to use some other mechanism for doing the XML file changes, or by doing post-install fixup of the XML file.

In trying to get around this, I got down to the point of modifying the XSLT transform streamed inside the XML helper *.dll in the custom action, and nothing would change this behavior. It's unfortunate, but it seems like there's some parsers that don't like MSXML's way of terminating empty elements, even though it's still valid XML, and there's no way to convince MSXML to parse it differently.

If anyone else who is more clever than I has found a solution, perhaps you could post it in this thread?
0 Kudos