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
: 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
>
> -
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
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
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