List Info

Thread: SXP malloc & free for custom node type




SXP malloc & free for custom node type
user name
2006-02-24 15:29:23
hi there,

I want to apply XPath expressions to the UNIX filesystem
tree and found 
SXP could be useful for this task. I wrote the callback
functions and 
everything works fine.
Because I create the nodes "on-the-fly" in the
callback functions I 
always create new nodes in the getNextSibling, getChildNo,
getParent 
functions. My nodetype contains just two strings.

So, my question: Is it possible to delete the nodes that are
no longer 
used (free the memory) during the XPath evaluation? Because
there may be 
many depth levels which would result in big memory
consumption. Or how 
would you propose to solve the problem? Is internally always
just one 
node used? (which means that I can free one node if I
created a new one 
and return it afterwards)

Thanks!

kaspar
------------------------------------------------------------
------------

Archives and info: http
://www.gingerall.org/charlie/ga/xml/m_ml.xml

Mailing list maintained by Ginger Alliance

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )