Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

To remove "&" from XML generated file.

Former Member
0 Kudos

Dear All,

I am facing one problem, when XML file is getting generated.

Here when ever special character comes like "&", it shows me in the output of XML file as "&amp".

How should it be avoided? Pls require some suggestions.

1 ACCEPTED SOLUTION

jrg_wulf
Active Contributor
0 Kudos

Hi Vishvesh,

since XML treats '&' as special character, it has to be masked as "&amp" to appear for itself. Therefore you'd better not change that behaviour, unless you want to use the xml-file for other purposes.

regards

Jörg

3 REPLIES 3

jrg_wulf
Active Contributor
0 Kudos

Hi Vishvesh,

since XML treats '&' as special character, it has to be masked as "&amp" to appear for itself. Therefore you'd better not change that behaviour, unless you want to use the xml-file for other purposes.

regards

Jörg

Former Member
0 Kudos

Dear Jorg,

Ya that's absolutely true, as i am not getting any error but want to fix that because when i download that XML file, after that i have to again upload that to some portal.

So i request for the solution if anything could be done with it.

Thank You

Vishvesh

Former Member
0 Kudos

Once xml file is generated, you can read it in edit mode, and replace all occurrences of '&amp' by '&'.