0

When i run xmltask it's convert tags like &apos; to ' . Example: From: <Value>&apos;operation&apos;</Value> To: <Value>'operation'</Value>

How can I avoid this auto converting? I want that &apos; to stay as it is.

Apolo
  • 3,844
  • 1
  • 21
  • 51
  • Why? They two representations are equivalent (and `'` uses fewer bytes and is much easier to read) – Quentin Apr 02 '14 at 12:10

2 Answers2

0

Try setting the expandEntityReferences attribute to false:

<xmltask source="..." dest="..." expandEntityReferences="false"/>
Petter
  • 4,053
  • 27
  • 33
0

If you really want to keep your &apos, you can try this :

write &amp;apos; instead of &apos;

it will be processed like this :

&amp;apos; => &apos; (instead of &apos; => ')

Which means you have to replace every & with &amp;...

There must be a smarter solution

Apolo

Apolo
  • 3,844
  • 1
  • 21
  • 51