[phpXML] parsing large files -- another solution?
Brought to you by:
bs_php,
nigelswinson
From: <spr...@ho...> - 2001-10-08 15:12:07
|
My first thought was to have a couple methods access and store content in a file until the full xml is requested. Then I realized doing that would not save much memory because the node structure is what's taking up so much space. A previous post about phpxmldb got me thinking about the opposite of phpxmldb. How about creating an SQL schema that maps directly to phpxml's internal structure. That way, any XPath query can be easily converted to an SQL query. The initial parse of an XML file would be quite slow because of all the inserts it would require, but the speed of XPath queries would only be reduced by the time it takes for executing one sql query. The memory problem, which some developers cannot get around, could be eliminated this way. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |