print XML

Karl Knechtel zahlman at gmail.com
Sat May 19 19:32:46 EDT 2012


What do you want the contents of the file to look like? Why are you
parsing the XML in the first place? (What do you want to happen if the
data on `sys.stdin` isn't actually valid XML?)

On Thu, May 17, 2012 at 9:52 AM, Nibin V M <nibinvm at gmail.com> wrote:
> Hello,
>
> I have the following code, which will assign  XML data to a variable! What
> is the best method to write the contents of the variable to a file?
>
> =======
> doc = minidom.parse(sys.stdin)
> =======
>
> Any help will be highly appreciated!
>
> Thank you,
> --
> Regards....
>
> Nibin.
>
> http://TechsWare.in
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
~Zahlman {:>



More information about the Python-list mailing list