1

How to do xml- transform in web.config for key value = "Demo 3pm&#8482"

<add key="Key1" value="Demo 3pm&#8482;"></add>.

When I'm doing xml-transform it's giving

<add key="Key1" value="Demo 3pm™"></add> . 

How to get Demo 3pm&#8482?

Imran Sh
  • 1,623
  • 4
  • 27
  • 50
Sekhar
  • 11
  • 2
  • Question is unclear.... Please explain better and show some code.. – Gilad Green Oct 31 '16 at 20:37
  • Here is the actual key : . When I'm doing xml-transform it's giving . How to get Demo 3pm™ ?? – Sekhar Oct 31 '16 at 20:39
  • 1
    Please edit the question to add this code – Gilad Green Oct 31 '16 at 20:40
  • So the problem is that you don't want the Xml Entity to be transformed into its actual character? – rene Oct 31 '16 at 20:45
  • @GiladGreen I don't think that dupe is correct – rene Oct 31 '16 at 20:46
  • No Gilad, Rene,it's related XML-Transform. My question is , XML transforming the web.config value basis of key. but XML Transform unable to convert it "Demo 3pm™" as it is. It's giving result as "Demo 3pm™". – Sekhar Oct 31 '16 at 20:46
  • I think it might work if you do `Demo 3pm&#8482;` as that will transform & in & but will not consider the rest of the entity. – rene Oct 31 '16 at 20:48
  • Thanks Rene !! It's now coming as Demo 3pm&#8482 after xml- transform. Is there any way to make as exact 3pm™ – Sekhar Oct 31 '16 at 20:57
  • Hmm, strange, maybe try `Demo 3pm&#8482;` based on [this](http://stackoverflow.com/a/4940233/578411) – rene Oct 31 '16 at 21:06
  • Rene , It gives me same result Demo 3pm&#8482. How to rid out of amp; – Sekhar Nov 01 '16 at 14:09

0 Answers0