get textual content of a Xml element using 4DOM

frankabel frankabel at tesla.cujae.edu.cu
Thu Mar 3 04:34:44 EST 2005


Hi all!
I have the following xml file:
"
<items>
	<item>hi</item>
	<item>hello</item>
</items>
"
and need to read all the content between <items> and </items> tags and
saved in a string, in this case:
"
	<item>hi</item>
	<item>hello</item>
"
Working with "xml.dom.minidom" I can use the
"xml.dom.minidom.Node.toxml()" to obtain the string inside one node. But
I wish to use 4DOM to load my DOM tree.

Someone know a manner to make something like
"xml.dom.minidom.Node.toxml()" using 4DOM?

Why a lightweight implementation like "xml.dom.minidom" have this
feature, while a 4DOM don't?

Thanks







More information about the Python-list mailing list