Re: get textual content of a Xml element using 4DOM

2005-03-06 Thread and-google
Frank Abel Cancio Bello <[EMAIL PROTECTED]> wrote: > PrettyPrint or Print return the value to the console, and i need > keep this value in a string variable to work with it, how can i > do this? The second parameter to either of these functions can be a stream object, so you can use a StringIO t

Re: get textual content of a Xml element using 4DOM

2005-03-04 Thread Frank Abel Cancio Bello
: get textual content of a Xml element using 4DOM > I suggest using minidom or pxdom [1] rather than 4DOM. If you insist > on using 4DOM, xml.dom.ext.Print(node) or xml.dom.ext.PrettyPrint(node) > does what you want. > > [1] http://www.doxdesk.com/software/py/pxdom.html > > -

Re: get textual content of a Xml element using 4DOM

2005-03-04 Thread uche . ogbuji
I suggest using minidom or pxdom [1] rather than 4DOM. If you insist on using 4DOM, xml.dom.ext.Print(node) or xml.dom.ext.PrettyPrint(node) does what you want. [1] http://www.doxdesk.com/software/py/pxdom.html --Uche -- http://mail.python.org/mailman/listinfo/python-list

Re: get textual content of a Xml element using 4DOM

2005-03-04 Thread uche . ogbuji
I suggest using minidom or pxdom [1] rather than 4DOM. If you insist on using 4DOM, xml.dom.ext.Print(node) or xml.dom.ext.PrettyPrint(node) does what you want. --Uche -- http://mail.python.org/mailman/listinfo/python-list

get textual content of a Xml element using 4DOM

2005-03-02 Thread frankabel
Hi all! I have the following xml file: " hi hello " and need to read all the content between and tags and saved in a string, in this case: " hi hello " Working with "xml.dom.minidom" I can use the "xml.dom.minidom.Node.toxml()" to obtain the string inside one nod