Which would be the preferred, or more efficient, way to read in a 40mb XML file? I remember reading (awhile ago) there were different methods of parsing XML, some more efficient than others depending on the need. The entire file would eventually need to be loading into an array, so I don't really need to search the file for a specific entry at random but simply all of them.
Phaelax
52
Practically a Posting Shark
Recommended Answers
Jump to PostYou don't want to keep that much data in memory...
Use a SAX parser for large amounts of data, as it doesn't need to retain the data in between operations.
All 4 Replies
jwenting
1,889
duckman
Team Colleague
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
hussulinux
0
Light Poster
jwenting
1,889
duckman
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.