Codename K
Posts: 471
Joined: Fri Jan 29, 2010 3:04 pm

The XML file adds extra characters when created?

Hello,

I am creating a XML file from Advanced Installer. I have included the following line in the XML file's attribute, "/define:_MYTYPE=\"Web\"". But when the installer creates the XML file it changes it to like this, "/define:_MYTYPE=\&ampquot;Web\&ampquot;". It adds the "amp" value with it. How to fix this?

:?:
K
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: The XML file adds extra characters when created?

Hi,

Please note that this is the normal behavior. The & special character is automatically parsed to & when an XML file is created. If you want to have exactly the "/define:_MYTYPE=\"Web\"" value to be written in your XML file, you need to write it like this in the Advanced Installer project: /define:_MYTYPE="Web"

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 471
Joined: Fri Jan 29, 2010 3:04 pm

Re: The XML file adds extra characters when created?

It worked perfectly. Thank you.

Only thing is this value "/define:_MYTYPE=\"Web\"" have to be given like this "/define:_MYTYPE=\"Web"" without the ";" at the end. It automatically adds it.
K

Return to “Common Problems”