Skip to main content
November 1, 2024
Question

DOCX From Dynamic Template - unable to insert Apostrophe (') as a text in the XML

  • November 1, 2024
  • 1 reply
  • 0 views

Hi, 

We have text which has Apostrophe in it for  eg: Name with Apostrophe in it (Katie O'Mahony) . Since it is a XML field, We cant use it directly in XML field. Escape characters also not parsed in created document. Can you please help us in getting document generated with apostrophe in the text field. 

And also let us know which escape tag needs to be used for Apostrophe insertion.

Sample XML :<followerlist abc='xxx' name='Katie O'Mahony' />

We have tried replacing with escape characters like &apos;    $#34

1 reply

somasundaram.d
November 1, 2024

Hi, Please check your usage of &apos;

I am able to get the name using it. 

<developer name='John' lastEmail='Katie O&apos;Mahony' mail='smith@email' day='10-10-2014' />