ElementTree write <> into element text -


i put <> characters in element content after write getting &lt ; , &gt ;

et.subelement(shipto, "companyorname").text = '<![cdata[{}]]>'.format(address['company']) 

effect:

<companyorname>&lt;![cdata[company]]&gt;</companyorname> 


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -