Re: print XML

2012-05-19 Thread Karl Knechtel
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 wrote: > Hello, > > I have the following code, which will assign  XM

print XML

2012-05-17 Thread Nibin V M
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 -- h