Jump to content

Need some XML strategy here


jini01

Recommended Posts

Sorry, that was a bit unhelpful  :D

 

What you need is something that reads XML as a stream (like C#, or perl) so it only reads a bit, processes it and so on. Reading 1,700 meg into memory isn't happening in PHP.

 

Or a pre-process that looks at the XML and does something with it before your PHP is called.

 

monk.e.boy

Should I use SAX or DOM?

In short: Use SAX unless you require the hierarchy for XPath. If you have to use DOM, see if you can break the XML document into smaller pieces.

 

Have you looked at PHP's XML capabilities? Also check PEAR.

If you have the option to use Perl, XML::Twig is very handy.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.