memory related issues in Python - bug??

Hi, I have a very big XML file that I am trying to parse using xml.dom and xml.dom.minidom. This file has around 100 nodes. Each of these nodes(say 'child_X') have a number of child nodes and each of these child nodes in turn has a text node as its child. So when I try to retrieve all the data from each 'child_X' node, I use this code, grandChildren = child_X.childNodes() for grandChildNode in grandChildren: equation = equation + str(grandChildNode.firstChild.data) This works properly for all files. But when I am trying to use it on a very large XML file, one of the node's data is incomplete. eg. if grandChildNode.toxml() returns "<mi>y18</mi>" for this node, then "str(grandChildNode.firstChild.data)" returns only "y" instead of "y18". This looks like some memory problem. Is there any workaround for this problem. Thanks for any suggestion or help, Pinki Mallick

Mallick, Pinki writes:
I have a very big XML file that I am trying to parse using xml.dom and xml.dom.minidom. This file has around 100 nodes. Each of these ...
This message was also posted to the XML-SIG (where it belongs) and the webmaster address for python.org (where it doesn't). Please don't spam several lists with a question like this. I've responded to the question in the appropriate forum. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Zope Corporation

On Tue, Sep 09, 2003, Mallick, Pinki wrote:
I have a very big XML file that I am trying to parse using xml.dom and xml.dom.minidom.
You've sent this question to two inappropriate places: webmaster@python.org and python-dev@python.org Please use the Usenet group comp.lang.python (or subscribe to python-list) and post your question there. -- Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/ "It is easier to optimize correct code than to correct optimized code." --Bill Harlan
participants (3)
-
Aahz
-
Fred L. Drake, Jr.
-
Mallick, Pinki