[XML-SIG] DOM -> String ?

Uche Ogbuji uche.ogbuji at fourthought.com
Sat Jun 7 19:33:28 EDT 2003


> Uche Ogbuji wrote:
> > > hello
> > > 
> > > is there a way to transform a DOM Tree into a Python string ???
> > > identation is  not necessary. I just want to send the DOM Tree over
> > > a socket.
> > 
> > If you have 4Suite, there is Ft.Xml.Domlette.Print
> 
> I think you mean
> Ft.Xml.Lib.Print.Print() and Ft.Xml.Lib.Print.PrettyPrint()

Nah.

[uogbuji at borgia uogbuji]$ python
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from Ft.Xml.Domlette import Print
>>>

People, please avoid using Ft.Xml.Lib.Print.Print() and 
Ft.Xml.Lib.Print.PrettyPrint() directly.


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Using libxml in Python - http://www.xml.com/pub/a/2003/05/14/py-xml.html
Charming Jython - http://www-106.ibm.com/developerworks/java/library/j-jython.h
tml
The commons of creativity - http://www-106.ibm.com/developerworks/xml/library/x
-think18.html
Is XQuery an omni-tool? - http://www.adtmag.com/article.asp?id=7620





More information about the XML-SIG mailing list