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!

amorpeth
Posts: 18
Joined: Sat Feb 04, 2017 9:43 pm

XML Config '[PROPERTY]' is replaced with '[PROPERTY]'

Hey,

I am using XML config to configure some elements in my XML. I am injecting a property inside open/close single brackets '[PROPERTY]', however the result in the XML is '[PROPERTY]'.

Is there anyway to force the use of the literal rather than the HTML equivalent?

Thanks,
Andrew
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: XML Config '[PROPERTY]' is replaced with '[PROPERTY]'

Hello Andrew,

This behavior is by design. Our XML support always write the apostrophe character using its XML escaped form:

Code: Select all

'
This is a best practice when creating an XML file. The special characters (", &, ', <, >) should be written escaped in the XML content. Also, every XML parser tool should correctly interpret any XML escaped character sequence so you should not encounter any problem.

Do you have a specific reason why do you need to get the ' character written in the XML content as it is? If so, can you please give us more feedback about this?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
amorpeth
Posts: 18
Joined: Sat Feb 04, 2017 9:43 pm

Re: XML Config '[PROPERTY]' is replaced with &apos;[PROPERTY]&apos;

Hey,

Thanks for getting back to be and sorry for the slow response. The reason is purely for readability as this is used in a settings file.

Thanks,
Andrew
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: XML Config '[PROPERTY]' is replaced with &apos;[PROPERTY]&apos;

You're always welcome Andrew. Thank you for your follow up too.

Unfortunately, currently there is no way to write the apostrophe character non-escaped. Maybe we will add this option in the future though. Thank you for your feedback.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”