Given that you do not want to manipulate the XML after reading it I would go with the stream classes, particularly if the files are large. (Dom is great for manipulating XML, but the entire data will be in memory).
Presumably, you're just reading the XML to pick out some data elements, in which case the stream will offer the fastest option.




Reply With Quote

Bookmarks