XML Edit and character escaping - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

joseacta
Posts: 1
Joined: Wed Mar 30, 2011 9:30 pm

XML Edit and character escaping

I need to place the following CDATA information in a node named "template" in a config file:

<template><![CDATA[Timestamp: {timestamp}
Message: {message}
Category: {category}
Priority: {priority}
EventId: {eventid}
Severity: {severity}
Title:{title}
Machine: {machine}
Application Domain: {appDomain}
Process Id: {processId}
Process Name: {processName}
Win32 Thread Id: {win32ThreadId}
Thread Name: {threadName}
Extended Properties: {dictionary({key} - {value}
)}]]></template>

But the resulting XML file from Advanced Installer replaces the "<" character with "<" which results in an error in the CDATA field:

<template><![CDATA[Timestamp: {timestamp}
Message: {message}
Category: {category}
Priority: {priority}
EventId: {eventid}
Severity: {severity}
Title:{title}
Machine: {machine}
Application Domain: {appDomain}
Process Id: {processId}
Process Name: {processName}
Win32 Thread Id: {win32ThreadId}
Thread Name: {threadName}
Extended Properties: {dictionary({key} - {value}
)}]]></template>

How can I prevent Advanced Installer from escaping the Text value in the XML Edit?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: XML Edit and character escaping

Hello,

Unfortunately we don't have any predefined support for CDATA entries. However, you can try modify the config file like a regular file to fix it. Here is the user guide reference to help you achieve this.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Robin Paardekam
Posts: 3
Joined: Wed Nov 30, 2011 4:11 pm

Re: XML Edit and character escaping

Mihai, is CDATA support added in the meantime, or should I really keep using the .txt workaround (which sucks imho)?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: XML Edit and character escaping

Hello,

Unfortunately, I am unaware of any predefined support added in this direction. However, I have notified the development team to consider your requirement suggestion.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”