Community mailing list archives

How to pass the XML file in python using CDATA

Mayur Maheshwari
- 03/16/2015 05:36:34
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

Mayur Maheshwari