Hi,
I am using the "New XML File" feature in AI to create a new xml document. I am then populating this xml file by using a number of public properties. All of this works as expected. However, the xml document contains the xml declaration at the top of the file (<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>), which is causing problems with the installed application. I have tried removing this line using an attached custom action which uses a vbscript to remove the first line of the document. I pass the name of the file (including the path) as the Action Data. A check in the vb script indicates that this is the correct value. I have placed this custom action in the InstallFinalize sequence. For some reason, the script is not updating the file (the script has been tested outside AI and works).
Any idea what I may be doing wrong? Is there another way to remove the xml declaration from the file?
Regards,
Glenn
FOLLOW US
Get the latest news in Application Packaging