Is it possible to read an element from an XML file without loading the entire file into memory?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I have thousands of large XML files from which I need to extract only few elements. I am fairly new to XML files and I was wondering if it is possible to read a single element from an XML file based on its tag without loading the entire XML file into the memory?
Thanks,
Tuomas
6 commentaires
dpb
le 14 Juil 2014
Modifié(e) : dpb
le 14 Juil 2014
Again, why not use the XML file tools in Matlab first to prove they're not up to the task first???? Could probably have already done it in time have spent dreaming about fgetl and manual parsing plus reading the file line-by-line w/ fgetl is about as slow as it gets from an i/o process w/ only a fgetch being worse...
As for "big", what kind of size are we talking of?
Sara
le 14 Juil 2014
Building on dpb comment, do you have any code you have written to read in the files and "search" them?
Réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!