Is it possible to read an element from an XML file without loading the entire file into memory?

4 次查看(过去 30 天)
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 个评论
dpb
dpb 2014-7-14
编辑:dpb 2014-7-14
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?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structured Data and XML Documents 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by