|
Posted by Oli Filth on 11/17/05 18:49
bizt said the following on 17/11/2005 11:37:
> Hi,
>
> I am about to write an app that loads an XML file into memory and then
> outputs it. Anyway, the XML file is likely to grow and grow. Its
> sitting at about 37KB just now and is likely to double every 6 months.
> Should I be concerned?
>
If you are just loading it in and then outputting it, why do you need
DOM XML?
However, DOM parser loads and processes the whole file in memory. So if
you are doing processing, and your XML file is very large (I don't know
what this threshold is), it's generally recommended that you use
event-based parsing, e.g. xml_parser_create(),
xml_set_element_handler(), etc.
--
Oli
[Back to original message]
|