Community mailing list archives

community@mail.odoo.com

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

by
senthil
- 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 <mayurmaheshwari07@gmail.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 "&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'?>
    <text>
    This is just some sample text.
    </text>
    """

Python Expert Please update me


Regards,
Mayur Maheshwari

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




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