[Twisted-Python] How to save the content(string) of a DOM node into a file?

Chris Armstrong radix at twistedmatrix.com
Mon Sep 15 20:41:12 EDT 2003

On Mon, Sep 15, 2003 at 11:17:44AM -0700, suneetha velicheti wrote:
> Hi,
>   I wanted to save the content of a DOM node into a file and want my 
> browser to prompt me with "save as" window. I already set the browser 
> preferences. Right now the content of the node is just displaying in the 
> browser window. Instead of that I want to promt the user to save that 
> content into a file with "save as" option window. Are there any DOM helper 
> methods to do this?

see the "write[pretty]xml" method.
 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/

More information about the Twisted-Python mailing list