Community mailing list archives
Re: How to pass the XML file in python using CDATAby
Mayur did you try using python lxml.etree ?
On Mon, Mar 16, 2015 at 5:41 PM, Mayur Maheshwari (OpenERP) | Tel: +91 99245 42042 <email@example.com> wrote:
Dear Community Members,
I have some issue while passing XML to the web services.I have below text in XML format and I want to pass the XML file in python .But When I am passing the XML as string so XML will passing with "< " and ">" tags so which method i will use to pass the XML
I have heard about CDATA but anyone know how to use CDATA to generate XML in Python so achieve this
text = """
<?xml version='1.0' encoding='utf-8'?>
This is just some sample text.
Python Expert Please update me