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 <nibi...@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 {:>
-- 
http://mail.python.org/mailman/listinfo/python-list
  • print XML Nibin V M
    • Re: print XML Karl Knechtel

Reply via email to