[XML-SIG] get textual content of a Xml element using 4DOM

Leticia Larrosa LETICIA at tesla.cujae.edu.cu
Fri Mar 4 23:59:44 CET 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
Leticia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/xml-sig/attachments/20050304/b3311cec/attachment.htm


More information about the XML-SIG mailing list