Is it possible to read an element from an XML file without loading the entire file into memory?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
dpb
el 14 de Jul. de 2014
Editada: dpb
el 14 de Jul. de 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
el 14 de Jul. de 2014
Building on dpb comment, do you have any code you have written to read in the files and "search" them?
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!