Community mailing list archives

Re: How to pass the XML file in python using CDATA

- 03/16/2015 06:21:43
Mayur did you try using python lxml.etree ?

On Mon, Mar 16, 2015 at 5:41 PM, Mayur Maheshwari (OpenERP) | Tel: +91 99245 42042 <> 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 "&lt; " and "&gt;" 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

Mayur Maheshwari

Post to:

Senthilnathan G
+91-94888 91888
+91-87544 15304