This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: XML Declaration Problem
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 14, 2009
04:03 PM
XML Declaration Problem
I am creating a Basic MSI in which I have to make changes to an xml file within my install.
I am able to supply the data through the install and everything works properly except an xml declaration is added to the file.
I would like to omit the above statement from my .xml file... In another post I was able to find an edit to the ISxmlCfg.dll where I pass omit-xml-declaration="no"
After I edit the file and manually "Test XML File Install Changes" the output is exactly what I need, however, when I actually run the installer I still get the xml declaration added to my file.
Perhaps I am overlooking something as I am new to InstallShield but is there a way to edit the file at runtime using a basic msi and not have the xml file rebuilt with the statement above added?
Thanks!
I am able to supply the data through the install and everything works properly except an xml declaration is added to the file.
I would like to omit the above statement from my .xml file... In another post I was able to find an edit to the ISxmlCfg.dll where I pass omit-xml-declaration="no"
After I edit the file and manually "Test XML File Install Changes" the output is exactly what I need, however, when I actually run the installer I still get the xml declaration added to my file.
Perhaps I am overlooking something as I am new to InstallShield but is there a way to edit the file at runtime using a basic msi and not have the xml file rebuilt with the statement above added?
Thanks!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 17, 2009
03:30 PM
There are a couple different IsXmlCfg.dll files, so the first thing I would try would be copying the corresponding edit to these other files. That said, this isn't heavily traversed area, so I'm not sure I'd expect things to work. What's trying to read this file that cannot handle a well-formed xml file, and would it be better to treat this as a raw text file? Also check out IS2010's updates to xml support if they happen to fix this, as well as its new text file changes view, if upgrading is an option for you.